Skip to content

Instantly share code, notes, and snippets.

@SoldierCoder
Created June 11, 2009 04:41
Show Gist options
  • Save SoldierCoder/127706 to your computer and use it in GitHub Desktop.
Save SoldierCoder/127706 to your computer and use it in GitHub Desktop.
<h1>New roster</h1>
<%= error_messages_for :roster %>
<% form_for(@roster) do |f| %>
<p>
<b>Course</b><br />
<%= collection_select(:course, :id, @courses, :id, :name ,{:prompt => true}) %><br />
</p>
<p>
<b>Student</b><br />
<%= collection_select(:student, :id, @students, :id, :reverse_full_name, {:prompt => true}) %><br />
</p>
<p>
<%= f.submit "Create" %>
</p>
<% end %>
<%= link_to 'Back', rosters_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment