Created
June 11, 2009 04:41
-
-
Save SoldierCoder/127706 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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