Skip to content

Commit

Permalink
form helpers guide: fixes an example
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Aug 9, 2010
1 parent 4434e40 commit 505546a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/guides/source/form_helpers.textile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 505546a

Please sign in to comment.