= form_for @<%= singular_table_name %> do |f| -if @<%= singular_table_name %>.errors.any? #error_explanation %h2= t(:form_error_explanation, :count => @<%= singular_table_name %>.errors.count, :model => '<%= singular_table_name %>') %ul - @<%= singular_table_name %>.errors.full_messages.each do |msg| %li= msg <% for attribute in attributes -%> .field = f.label :<%= attribute.name %> = f.<%= attribute.field_type %> :<%= attribute.name %> <% end -%> .actions = f.submit