Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Left off a : when specifying the :namespace option for a :controller

path segment
  • Loading branch information...
commit df755d4e530c2e991261528793c9952a2d907343 1 parent 22a8433
Corey Haines coreyhaines authored vijaydev committed

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  railties/guides/source/routing.textile
2  railties/guides/source/routing.textile
Source Rendered
@@ -385,7 +385,7 @@ match ':controller/:action/:id/:user_id'
385 385
386 386 An incoming path of +/photos/show/1/2+ will be dispatched to the +show+ action of the +PhotosController+. +params[:id]+ will be +"1"+, and +params[:user_id]+ will be +"2"+.
387 387
388   -NOTE: You can't use +namespace+ or +:module+ with a +:controller+ path segment. If you need to do this then use a constraint on :controller that matches the namespace you require. e.g:
  388 +NOTE: You can't use +:namespace+ or +:module+ with a +:controller+ path segment. If you need to do this then use a constraint on :controller that matches the namespace you require. e.g:
389 389
390 390 <ruby>
391 391 match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/

0 comments on commit df755d4

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