Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #28406 from chukitow/feature/user-form-with-instea…
…d-of-form-for-scaffold

user form with instead of form for in scaffold generator
  • Loading branch information
kaspth committed Mar 20, 2017
2 parents dd40c77 + 0314875 commit 8534d2e
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,4 +1,4 @@
<%%= form_for(<%= singular_table_name %>) do |f| %>
<%%= form_with(model: <%= singular_table_name %>, local: true) do |f| %>
<%% if <%= singular_table_name %>.errors.any? %>
<div id="error_explanation">
<h2><%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
Expand Down

0 comments on commit 8534d2e

Please sign in to comment.