%= form_for(@user_certification) do |f| %>
<% if @user_certification.errors.any? %>
<%= pluralize(@user_certification.errors.count, "error") %> prohibited this User Certification from being saved:
<% @user_certification.errors.full_messages.each do |msg| %>
- <%= msg %>
<% end %>
<% end %>
<% @user_certification.user_id = params[:user] if params[:user].present? %>
<%= f.label :user_id, "User" %>
<%= collection_select(:user_certification, :user_id, @users, :id, :name, :include_blank => true) %>
<%= f.label :certification_id, "Certification" %>
<%= collection_select(:user_certification, :certification_id, @certifications, :id, :name, :include_blank => true) %>
<%= f.submit %>
<% end %>