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

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

<% end %>
<%= f.label :id %>
<%= f.text_field :id %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :price %>
<%= f.text_field :price %>
<%= f.label :active %>
<%= f.check_box :active %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.label :vendor %>
<%= f.select :vendor_id, options_from_collection_for_select(@vendors, 'id', 'name') %>
<%= f.submit %>
<% end %>