tap/app/views/products/new.html.erb
2014-11-24 21:45:32 +01:00

15 lines
355 B
Text

<%= form_for @product do |f| %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :purchase_price %>
<%= f.number_field :purchase_price %>
<%= f.label :sale_price %>
<%= f.number_field :sale_price %>
<%= f.label :img_path %>
<%= f.text_field :img_path %>
<%= f.submit "Create product", class: "btn btn-primary" %>
<% end %>