2014-12-31 01:02:31 +08:00
|
|
|
= simple_form_for(@<%= singular_table_name %>) do |f|
|
|
|
|
= f.error_notification
|
|
|
|
|
2017-04-30 19:48:31 +08:00
|
|
|
.inputs
|
|
|
|
| <%- attributes.each do |attribute| -%>
|
2014-12-31 01:02:31 +08:00
|
|
|
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
|
2017-04-30 19:48:31 +08:00
|
|
|
| <%- end -%>
|
2014-12-31 01:02:31 +08:00
|
|
|
|
2017-04-30 19:48:31 +08:00
|
|
|
.actions
|
2014-12-31 01:02:31 +08:00
|
|
|
= f.button :submit
|