mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
form helpers guide: fixes an example
This commit is contained in:
@@ -647,7 +647,7 @@ the +params+ hash will contain
|
||||
{'person' => {'name' => 'Henry'}}
|
||||
</erb>
|
||||
|
||||
and +params["name"]+ will retrieve the submitted value in the controller.
|
||||
and +params[:person][:name]+ will retrieve the submitted value in the controller.
|
||||
|
||||
Hashes can be nested as many levels as required, for example
|
||||
|
||||
|
||||
Reference in New Issue
Block a user