Add warning

This commit is contained in:
Frederick Cheung
2008-12-31 12:06:40 +00:00
parent 092b1d8433
commit 7156d58381

View File

@@ -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
-------------------------------------