<%= form_for(@product) do |f| %> <% if @product.errors.any? %>

<%= pluralize(@product.errors.count, "error") %> prohibited this product from being saved:

<% end %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :description %>
<%= f.text_area :description, rows: 6 %>
<%= f.label :image_url %>
<%= f.text_field :image_url %>
<%= f.label :price %>
<%= f.text_field :price %>
<%= f.submit %>
<% end %>