Permalink
Browse files

form helpers guide: fixes an example

  • Loading branch information...
fxn committed Aug 9, 2010
1 parent 28d82bd commit 195e891954a3664a50db8aaf4ac85b797ce97834
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/form_helpers.textile
@@ -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

0 comments on commit 195e891

Please sign in to comment.