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
|
= f.error_notification
|
||||||
|
|
||||||
.form-inputs
|
.form-inputs
|
||||||
<%- attributes.each do |attribute| -%>
|
- attributes.each do |attribute|
|
||||||
= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>
|
= f.send(attribute.reference? ? :association : :input, attribute.name)
|
||||||
<%- end -%>
|
|
||||||
|
|
||||||
.form-actions
|
.form-actions
|
||||||
= f.button :submit
|
= f.button :submit
|
||||||
|
|
Loading…
Reference in a new issue