Permalink
Browse files

Add warning

  • Loading branch information...
1 parent 092b1d8 commit 7156d583814976eeee66eb50c710b786a4ba74cf @fcheung fcheung committed Dec 31, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 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
-------------------------------------

0 comments on commit 7156d58

Please sign in to comment.