From 7156d583814976eeee66eb50c710b786a4ba74cf Mon Sep 17 00:00:00 2001 From: Frederick Cheung Date: Wed, 31 Dec 2008 12:06:40 +0000 Subject: [PATCH] Add warning --- railties/doc/guides/source/form_helpers.txt | 4 ++++ 1 file changed, 4 insertions(+) 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 -------------------------------------