aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorMakoto Inoue <inouemak@googlemail.com>2012-01-16 09:51:19 +0000
committerVijay Dev <vijaydev.cse@gmail.com>2012-01-19 00:14:52 +0530
commit619731f2bb757965d20572a5f3f697045b0f5572 (patch)
tree9bbdbedd051af3c52118db7fe954e6d83bb94c6e /railties/guides
parent0960eb97d97bbfc018116ccf204bf8882743c109 (diff)
downloadrails-619731f2bb757965d20572a5f3f697045b0f5572.tar.gz
rails-619731f2bb757965d20572a5f3f697045b0f5572.tar.bz2
rails-619731f2bb757965d20572a5f3f697045b0f5572.zip
ActionController::UrlEncodedPairParser is deprecated. Replaced the url parsing example with Rack::Utils.parse_query
- https://webrat.lighthouseapp.com/projects/10503/tickets/161-urlencodedpairparser-removed-in-edge-rails
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/form_helpers.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index 64eb2d8f36..1681629620 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -630,10 +630,10 @@ action for a Person model, +params[:model]+ would usually be a hash of all the a
Fundamentally HTML forms don't know about any sort of structured data, all they generate is name–value pairs, where pairs are just plain strings. The arrays and hashes you see in your application are the result of some parameter naming conventions that Rails uses.
-TIP: You may find you can try out examples in this section faster by using the console to directly invoke Rails' parameter parser. For example,
+TIP: You may find you can try out examples in this section faster by using the console to directly invoke Racks' parameter parser. For example,
<ruby>
-ActionController::UrlEncodedPairParser.parse_query_parameters "name=fred&phone=0123456789"
+Rack::Utils.parse_query "name=fred&phone=0123456789"
# => {"name"=>"fred", "phone"=>"0123456789"}
</ruby>