fix(haml-lint): syntax error with ERB in haml scaffold file
This commit is contained in:
parent
f112569192
commit
1f6bdc8286
1 changed files with 3 additions and 4 deletions
|
@ -1,10 +1,9 @@
|
|||
= simple_form_for(@<%= singular_table_name %>) do |f|
|
||||
= 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 -%>
|
||||
- attributes.each do |attribute|
|
||||
= f.send(attribute.reference? ? :association : :input, attribute.name)
|
||||
|
||||
.form-actions
|
||||
= f.button :submit
|
||||
|
|
Loading…
Reference in a new issue