From 52bbff4e898ab00265580b34a06241d7d2c1571f Mon Sep 17 00:00:00 2001 From: Mark Thomson Date: Sat, 10 Mar 2012 14:27:36 -0600 Subject: Added clarification to description of how initial form values are derived. --- actionpack/lib/action_view/helpers/form_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionpack/lib') 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 # params[:person][:first_name]. # - # If :person also happens to be the name of an instance variable + # For fields generated in this way using the FormBuilder, + # if :person also happens to be the name of an instance variable # @person, 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 -- cgit v1.2.3