27 lines
938 B
Plaintext
Executable File
27 lines
938 B
Plaintext
Executable File
<%= form_for(@user_certification) do |f| %>
|
|
<% if @user_certification.errors.any? %>
|
|
<div id="error_explanation">
|
|
<h2><%= pluralize(@user_certification.errors.count, "error") %> prohibited this User Certification from being saved:</h2>
|
|
|
|
<ul>
|
|
<% @user_certification.errors.full_messages.each do |msg| %>
|
|
<li><%= msg %></li>
|
|
<% end %>
|
|
</ul>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% @user_certification.user_id = params[:user] if params[:user].present? %>
|
|
<div class="field">
|
|
<%= f.label :user_id, "User" %><br />
|
|
<%= collection_select(:user_certification, :user_id, @users, :id, :name, :include_blank => true) %>
|
|
</div>
|
|
<div class="field">
|
|
<%= f.label :certification_id, "Certification" %><br />
|
|
<%= collection_select(:user_certification, :certification_id, @certifications, :id, :name, :include_blank => true) %>
|
|
</div>
|
|
<div class="actions">
|
|
<%= f.submit %>
|
|
</div>
|
|
<% end %>
|