aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorVishnu Atrai <me@vishnuatrai.com>2011-07-15 23:56:58 +0530
committerVishnu Atrai <me@vishnuatrai.com>2011-07-15 23:56:58 +0530
commitb6d5612f551e982441097a67df001b5da99dee58 (patch)
treefb5d974cf7146409dae2525d5cf589dc2d670992 /railties
parentff410c4ea9ea54b3f4b9d5838703a4b039a1cf3f (diff)
downloadrails-b6d5612f551e982441097a67df001b5da99dee58.tar.gz
rails-b6d5612f551e982441097a67df001b5da99dee58.tar.bz2
rails-b6d5612f551e982441097a67df001b5da99dee58.zip
Should be "match" instead of "map"
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/routing.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/routing.textile b/railties/guides/source/routing.textile
index 06b3579720..57e390f385 100644
--- a/railties/guides/source/routing.textile
+++ b/railties/guides/source/routing.textile
@@ -560,13 +560,13 @@ would match +zoo/woo/foo/bar/baz+ with +params[:a]+ equals +"zoo/woo"+, and +par
NOTE: Starting from Rails 3.1, wildcard routes will always match the optional format segment by default. For example if you have this route:
<ruby>
-map '*pages' => 'pages#show'
+match '*pages' => 'pages#show'
</ruby>
NOTE: By requesting +"/foo/bar.json"+, your +params[:pages]+ will be equals to +"foo/bar"+ with the request format of JSON. If you want the old 3.0.x behavior back, you could supply +:format => false+ like this:
<ruby>
-map '*pages' => 'pages#show', :format => false
+match '*pages' => 'pages#show', :format => false
</ruby>
h4. Redirection