From fd0ae3c9ca68e76ff181fb2e66eddd1cc7039821 Mon Sep 17 00:00:00 2001 From: Masayuki Ueda Date: Wed, 8 Nov 2017 19:04:07 +0900 Subject: [PATCH] hash rocket --- lib/generators/haml/scaffold/templates/_form.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -%>