%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
<%% if <%= singular_table_name %>.errors.any? %>
<%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:
<%% <%= singular_table_name %>.errors.full_messages.each do |message| %>
- <%%= message %>
<%% end %>
<%% end %>
<% attributes.each do |attribute| -%>
<% if attribute.password_digest? -%>
<%%= f.input :password %>
<%%= f.input :password_confirmation %>
<% else -%>
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
<% end -%>
<% end -%>
<%% end %>