about summary refs log tree commit diff
path: root/lib/templates/haml/scaffold/_form.html.haml
blob: ac3aa7bc114d136dfdb9238518fa84d91c412cb4 (plain) (blame)
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