Skip to content

Instantly share code, notes, and snippets.

@gbelote
Forked from gabewb/gist:583590
Created September 17, 2010 03:08
Show Gist options
  • Save gbelote/583591 to your computer and use it in GitHub Desktop.
Save gbelote/583591 to your computer and use it in GitHub Desktop.
#undefined method `nil_class_path' for
<% form_for @game do |f| %>
<p><label for="game_title">Title:</label>
<%= f.text_field :title %></p>
<p><label for="game_price">Price:</label>
<%= f.text_field :price %><br />
<p><label for="game_tag">Tag:</label>
<%= collection_select('game',:tag_id,@tags,:id,:name)%>
<p><label for="game_description">Description</label></br>
<%= text_area 'game', 'description'%></p>
<%= submit_tag "Create Game"%>
<% end %>
<%= link_to 'Back', {:action => 'list'}%>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment