<%% if @<%= singular_name %>.errors.any? %>
<%%= pluralize(@<%= singular_name %>.errors.count, "error") %> prohibited this category from being saved:
<%% @<%= singular_name %>.errors.full_messages.each do |msg| %>
- <%%= msg %>
<%% end %>
<%% end %>
<%- model_attributes.each do |attribute| -%>
<%- end -%>