<%= form_for(@certification) do |f| %> <% if @certification.errors.any? %>

<%= pluralize(@certification.errors.count, "error") %> prohibited this certification from being saved:

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :description %>
<%= f.text_area :description %>
<% f.fields_for :users do |u| %> <%= u.label :user %>
<%= collection_select(:certifications_users, :user_id, User.all.sort_by(&:name), :id, :name) %> <% end %>
<%= f.submit %>
<% end %>