Skip to content
Permalink
6bb982f099
Go to file
 
 
Cannot retrieve contributors at this time
31 lines (26 sloc) 805 Bytes
<%= form_for(course) do |f| %>
<% if course.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(course.errors.count, "error") %> prohibited this course from being saved:</h2>
<ul>
<% course.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
</div>
<% end %>
<div class="field">
<%= f.label :course_name %>
<%= f.text_field :course_name %>
</div>
<div class="field">
<%= f.label :course_number %>
<%= f.text_field :course_number %>
</div>
<div class="field">
<%= collection_check_boxes(:course, :user_ids, @users, :id, :name, :item_wrapper_class => 'checkbox_container') %>
</div>
<div class="actions">
<%= f.submit %>
</div>
<% end %>
You can’t perform that action at this time.