Product edit

<%= form_for(@product) do |f| %> <%= render 'shared/error_messages', object: f.object %> <%= 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 :image_path %> <%= f.text_field :image_path %>
<%= f.submit "Update product", class: "btn btn-primary" %> <% end %>