Skip to content
Permalink
6bb982f099
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
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 %>