Skip to content

Instantly share code, notes, and snippets.

@techpeace
Forked from anonymous/gist:181919
Created September 6, 2009 19:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techpeace/181924 to your computer and use it in GitHub Desktop.
Save techpeace/181924 to your computer and use it in GitHub Desktop.
<h1>New product</h1>
Are you creating a new Product object in this action? Try this:
<%= @product.inspect %>
If nothing shows up, then you need a <pre>Product.new</pre> in this controller action.
<% form_for(@product) do |f| %>
<%= f.error_messages %>
<p>
<%= f.submit 'Create' %>
</p>
<% end %>
<%= link_to 'Back', products_path %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment