%%= error_messages_for :<%= singular_name %> %> <%% form_for @<%= singular_name %> do |f| %> <%- for attribute in attributes -%>
<%%= f.label :<%= attribute.name %> %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<%%= f.submit "Submit" %>
<%% end %>