%%= form_for <%= item_path :instance_variable => true %> do |f| %>
<%% if @<%= instance_name %>.errors.any? %>
<%%= pluralize(@<%= instance_name %>.errors.count, "error") %> prohibited this <%= instance_name %>from being saved:
<%% @<%= instance_name %>.errors.full_messages.each do |msg| %>
- <%%= msg %>
<%% end %>
<%% end %>
<%- for attribute in model_attributes -%>
<%%= f.label :<%= attribute.name %> %> |
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> |
<%- end -%>
<%%= f.submit "Submit" ,:style=>"margin:auto",:class=>"btn primary large"%>
<%% end %>