mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Add warning
This commit is contained in:
@@ -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
|
||||
-------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user