Skip to content

Instantly share code, notes, and snippets.

@amitm
Created February 9, 2012 18:35
Show Gist options
  • Save amitm/1781876 to your computer and use it in GitHub Desktop.
Save amitm/1781876 to your computer and use it in GitHub Desktop.
<%= form_for(@product) do |f| %>
<%= f.error_messages %>
<p>
<%= f.label :description %><br />
<%= f.text_field :description %>
</p>
<p>
<%= f.label :value %><br />
<%= f.text_field :value %>
</p>
<p>
<%= f.submit "Create" %>
</p>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment