Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Should be "match" instead of "map"

  • Loading branch information...
commit de2cc316368e509fd9e0c3fcde6b39a4c4292593 1 parent 80fc12f
@vatrai vatrai authored fxn committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/guides/source/routing.textile
4 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:
-map '*pages' => 'pages#show'
+match '*pages' => 'pages#show'
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:
-map '*pages' => 'pages#show', :format => false
+match '*pages' => 'pages#show', :format => false
h4. Redirection

0 comments on commit de2cc31

Please sign in to comment.
Something went wrong with that request. Please try again.