From 1f6bdc8286e98ad5dac89358f1d21a41376304b0 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Mon, 5 Feb 2024 13:01:14 +0100 Subject: [PATCH] fix(haml-lint): syntax error with ERB in haml scaffold file --- lib/templates/haml/scaffold/_form.html.haml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/templates/haml/scaffold/_form.html.haml b/lib/templates/haml/scaffold/_form.html.haml index ac3aa7bc1..4cf0ab2d6 100644 --- a/lib/templates/haml/scaffold/_form.html.haml +++ b/lib/templates/haml/scaffold/_form.html.haml @@ -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