You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
273 B

  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