Skip to content
Browse files

Added clarification to description of how initial form values are der…

…ived.
  • Loading branch information...
1 parent 23a0011 commit 52bbff4e898ab00265580b34a06241d7d2c1571f @MarkMT MarkMT committed Mar 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/lib/action_view/helpers/form_helper.rb
View
3 actionpack/lib/action_view/helpers/form_helper.rb
@@ -152,7 +152,8 @@ def convert_to_model(object)
# the value entered by the user will be available in the controller as
# <tt>params[:person][:first_name]</tt>.
#
- # If <tt>:person</tt> also happens to be the name of an instance variable
+ # For fields generated in this way using the FormBuilder,
+ # if <tt>:person</tt> also happens to be the name of an instance variable
# <tt>@person</tt>, the default value of the field shown when the form is
# initially displayed (e.g. in the situation where you are editing an
# existing record) will be the value of the corresponding attribute of

0 comments on commit 52bbff4

Please sign in to comment.
Something went wrong with that request. Please try again.