<%%= simple_form_for @<%= file_name %> do |form| %> <%% if @<%= file_name %>.errors.any? -%>

<%%= "#{pluralize(@<%= file_name %>.errors.count, "error")} prohibited this #{<%= class_name %>.name.titleize} from being saved:" %>

<%% end -%> <%- for attribute in attributes -%> <%%= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' %> <%- end -%>
<%%= form.button :submit %>
<%% end %>