diff options
Diffstat (limited to 'railties/doc/guides')
-rw-r--r-- | railties/doc/guides/source/form_helpers.txt | 4 |
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 ------------------------------------- |