Skip to content

Instantly share code, notes, and snippets.

@gabewb
Created September 17, 2010 03:07
Show Gist options
  • Save gabewb/583590 to your computer and use it in GitHub Desktop.
Save gabewb/583590 to your computer and use it in GitHub Desktop.
#undefined method `nil_class_path' for
<% form_for :action =>'create' do |f| %>
<p><label for="game_title">Title:</label>
<%= f.text_field 'game', 'title' %></p>
<p><label for="game_price">Price:</label>
<%= f.text_field 'game', 'price' %><br />
<p><label for="game_tag">Tag:</label>
<%= f.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