2014-12-04 20:32:31 +01:00
|
|
|
<%= form_for @product, html: { multipart: true } do |f| %>
|
|
|
|
<%= render 'application/errors', model: @product %>
|
|
|
|
|
2014-11-24 21:45:32 +01:00
|
|
|
<%= f.label :name %>
|
|
|
|
<%= f.text_field :name %>
|
|
|
|
|
2014-12-09 10:38:22 +01:00
|
|
|
<%= f.label :price %>
|
|
|
|
<%= f.number_field :price %>
|
2014-11-24 21:45:32 +01:00
|
|
|
|
2014-12-04 20:32:31 +01:00
|
|
|
<%= f.label :avatar %>
|
|
|
|
<%= f.file_field :avatar %>
|
2014-11-24 21:45:32 +01:00
|
|
|
|
|
|
|
<%= f.submit "Create product", class: "btn btn-primary" %>
|
|
|
|
<% end %>
|