<%%= labelled_form_for(@<%= singular_table_name %>) do |f| %> <%%= error_messages_for "<%= singular_table_name %>" %>
<% attributes.each do |attribute| -%>

<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>

<% end -%>

<%%= f.submit %>

<%% end %>