<%%= form_for(@<%= singular_name %>) do |f| %>
<%% if @<%= singular_name %>.errors.any? %>

<%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this category from being saved:

<%% end %> <%- model_attributes.each do |attribute| -%>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<%- end -%>
<%% end %>