diff --git a/lib/generators/haml/scaffold/templates/_form.html.haml b/lib/generators/haml/scaffold/templates/_form.html.haml index d1b033e..797a0b1 100644 --- a/lib/generators/haml/scaffold/templates/_form.html.haml +++ b/lib/generators/haml/scaffold/templates/_form.html.haml @@ -1,5 +1,5 @@ <% if Rails::VERSION::MAJOR >= 5 && Rails::VERSION::MINOR >= 1 -%> -= form_with model: @<%= singular_table_name %>, local: true do |f| += form_with :model => @<%= singular_table_name %>, :local => true do |f| <% else -%> = form_for @<%= singular_table_name %> do |f| <% end -%>