aboutsummaryrefslogtreecommitdiffstats
path: root/railties/doc/guides
diff options
context:
space:
mode:
authorFrederick Cheung <frederick.cheung@gmail.com>2008-12-31 12:06:40 +0000
committerFrederick Cheung <frederick.cheung@gmail.com>2008-12-31 17:13:11 +0000
commit7156d583814976eeee66eb50c710b786a4ba74cf (patch)
treec994a655a7b756d78b18bcc2f3acc73cffd1bd6b /railties/doc/guides
parent092b1d8433b85c4b2239552a452935c11b592e63 (diff)
downloadrails-7156d583814976eeee66eb50c710b786a4ba74cf.tar.gz
rails-7156d583814976eeee66eb50c710b786a4ba74cf.tar.bz2
rails-7156d583814976eeee66eb50c710b786a4ba74cf.zip
Add warning
Diffstat (limited to 'railties/doc/guides')
-rw-r--r--railties/doc/guides/source/form_helpers.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/doc/guides/source/form_helpers.txt b/railties/doc/guides/source/form_helpers.txt
index 8cbf553b85..bbe7c57b3d 100644
--- a/railties/doc/guides/source/form_helpers.txt
+++ b/railties/doc/guides/source/form_helpers.txt
@@ -228,6 +228,10 @@ params[:person][:name]
---------------------------
The params[:person] hash is suitable for passing to `Person.new` or, if `@person` is an instance of Person, `@person.update_attributes`.
+[NOTE]
+============================================================================
+You must pass the name of an instance variable, i.e. `:person` or `"person"` and not an actual instance of person.
+============================================================================
Forms that deal with model attributes
-------------------------------------