%% form_for(@<%= singular_name %>,:html => { :class => "form" }) do |f| %>
<%%= f.error_messages %>
<% columns.each do |column| %>
<%%= f.label :<%= column.name %>, "<%= column.name %>", :class => :label %>
<%%= f.<%= column.field_type %> :<%= column.name %>, :class => '<%= column.field_type %>' %>
Ex: a simple text
<%- end -%>
<%%= f.submit "Save →", :class => "button" %> or<%%= link_to 'Cancel', <%= plural_name %>_path %>
<%% end %>