1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Added clarification to description of how initial form values are derived.

This commit is contained in:
Mark Thomson 2012-03-10 14:27:36 -06:00
parent 23a00110cf
commit 52bbff4e89

View file

@ -152,7 +152,8 @@ module ActionView
# 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