We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3464021 + cd83775 commit 92a3c8dCopy full SHA for 92a3c8d
actionview/lib/action_view/helpers/form_helper.rb
@@ -69,7 +69,8 @@ module Helpers
69
# controller gets a nested hash <tt>params[:person]</tt> with the person attributes
70
# set in the form. That hash is ready to be passed to <tt>Person.create</tt>:
71
#
72
- # if @person = Person.create(params[:person])
+ # @person = Person.create(params[:person])
73
+ # if @person.valid?
74
# # success
75
# else
76
# # error handling
0 commit comments