summaryrefslogtreecommitdiff
path: root/lib/templates/erb/scaffold/_form.html.erb
blob: 24a17689ee7fe55192023075d83e9e095f270908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
  <%%= f.error_notification %>

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

  <div class="actions">
    <%%= f.button :submit %>
  </div>
<%% end %>