first raw implementation of the form

This commit is contained in:
2015-10-05 12:40:08 +02:00
parent af827b7e77
commit 1d8eb08db4
20 changed files with 478 additions and 8 deletions
@@ -0,0 +1,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