14 lines
349 B
Text
14 lines
349 B
Text
<%= form_for @product, html: { multipart: true } do |f| %>
|
|
<%= render 'application/errors', model: @product %>
|
|
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
|
|
<%= f.label :price %>
|
|
<%= f.number_field :price %>
|
|
|
|
<%= f.label :avatar %>
|
|
<%= f.file_field :avatar %>
|
|
|
|
<%= f.submit "Create product", class: "btn btn-primary" %>
|
|
<% end %>
|