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

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

<% end %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :code %>
<%= f.text_field :code %>
<%= f.submit %>
<% end %>