aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorMark Thomson <nzl216@gmail.com>2012-03-10 14:27:36 -0600
committerMark Thomson <nzl216@gmail.com>2012-03-10 14:27:36 -0600
commit52bbff4e898ab00265580b34a06241d7d2c1571f (patch)
treecb05ff0c20dcf0691e06746a76a7d8ae2e62828c /actionpack/lib
parent23a00110cf74027b77ba739853659f0c9621efa2 (diff)
downloadrails-52bbff4e898ab00265580b34a06241d7d2c1571f.tar.gz
rails-52bbff4e898ab00265580b34a06241d7d2c1571f.tar.bz2
rails-52bbff4e898ab00265580b34a06241d7d2c1571f.zip
Added clarification to description of how initial form values are derived.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 41173de2e7..3dcef98352 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -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