aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTore Darell <toredarell@gmail.com>2010-04-29 15:06:31 +0200
committerTore Darell <toredarell@gmail.com>2010-04-29 15:06:31 +0200
commit8d0bdbf0b71029d6fd6b2e7a3b61af42701225d4 (patch)
tree78921d494fce5592068693581d975b550f474161
parentc68ff4b27fbf8c7b1c3949b50e69730c9d94f92a (diff)
downloadrails-8d0bdbf0b71029d6fd6b2e7a3b61af42701225d4.tar.gz
rails-8d0bdbf0b71029d6fd6b2e7a3b61af42701225d4.tar.bz2
rails-8d0bdbf0b71029d6fd6b2e7a3b61af42701225d4.zip
Change %5b ([) to %5d (]) in escaped URL
-rw-r--r--railties/guides/source/action_controller_overview.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/action_controller_overview.textile b/railties/guides/source/action_controller_overview.textile
index 8166f94e42..9d8426b5de 100644
--- a/railties/guides/source/action_controller_overview.textile
+++ b/railties/guides/source/action_controller_overview.textile
@@ -91,7 +91,7 @@ The +params+ hash is not limited to one-dimensional keys and values. It can cont
GET /clients?ids[]=1&ids[]=2&ids[]=3
</pre>
-NOTE: The actual URL in this example will be encoded as "/clients?ids%5b%5d=1&ids%5b%5d=2&ids%5b%5b=3" as "[" and "]" are not allowed in URLs. Most of the time you don't have to worry about this because the browser will take care of it for you, and Rails will decode it back when it receives it, but if you ever find yourself having to send those requests to the server manually you have to keep this in mind.
+NOTE: The actual URL in this example will be encoded as "/clients?ids%5b%5d=1&ids%5b%5d=2&ids%5b%5d=3" as "[" and "]" are not allowed in URLs. Most of the time you don't have to worry about this because the browser will take care of it for you, and Rails will decode it back when it receives it, but if you ever find yourself having to send those requests to the server manually you have to keep this in mind.
The value of +params[:ids]+ will now be +["1", "2", "3"]+. Note that parameter values are always strings; Rails makes no attempt to guess or cast the type.