_form.html.haml 273 Bytes
Newer Older
cp's avatar
cp committed
1 2 3 4 5 6 7 8 9 10
= simple_form_for(@<%= singular_table_name %>) do |f|
  = f.error_notification

  .form-inputs
  <%- attributes.each do |attribute| -%>
    = f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
  <%- end -%>

  .form-actions
    = f.button :submit