%%= 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:" %>
<%%- @<%= file_name %>.errors.full_messages.each do |msg| -%>
- <%%= msg %>
<%%- end -%>
<%% end -%>
<%- for attribute in attributes -%>
<%%= form.input :<%= attribute.name %>, :label => '<%= attribute.name.titleize %>' %>
<%- end -%>
<%%= form.button :submit %>
<%% end %>