_form.html.haml 273 B

12345678910
  1. = simple_form_for(@<%= singular_table_name %>) do |f|
  2. = f.error_notification
  3. .form-inputs
  4. <%- attributes.each do |attribute| -%>
  5. = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
  6. <%- end -%>
  7. .form-actions
  8. = f.button :submit