From 204d3afb2ad33dbc8ae1e7a3c94adc41effe7907 Mon Sep 17 00:00:00 2001 From: Agis Anastasopoulos Date: Thu, 15 Nov 2012 23:07:34 +0200 Subject: Fix 'persons' to 'people' and add some whitespace --- guides/source/action_view_overview.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'guides') diff --git a/guides/source/action_view_overview.md b/guides/source/action_view_overview.md index 8cb21d43dc..81dbc690c0 100644 --- a/guides/source/action_view_overview.md +++ b/guides/source/action_view_overview.md @@ -3,7 +3,7 @@ Action View Overview In this guide you will learn: -* What Action View is, and how to use it with Rails +* What Action View is and how to use it with Rails * How best to use templates, partials, and layouts * What helpers are provided by Action View and how to make your own * How to use localized views @@ -943,7 +943,7 @@ The core method of this helper, form_for, gives you the ability to create a form The HTML generated for this would be: ```html -
+ @@ -953,7 +953,7 @@ The HTML generated for this would be: The params object created when this form is submitted would look like: ```ruby -{"action"=>"create", "controller"=>"persons", "person"=>{"first_name"=>"William", "last_name"=>"Smith"}} +{"action" => "create", "controller" => "people", "person" => {"first_name" => "William", "last_name" => "Smith"}} ``` The params hash has a nested person value, which can therefore be accessed with params[:person] in the controller. -- cgit v1.2.3