Left off a : when specifying the :namespace option for a :controller
path segment
This commit is contained in:
parent
4b89b90e93
commit
f434fa846e
@ -389,7 +389,7 @@ match ':controller/:action/:id/:user_id'
|
||||
|
||||
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"+.
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
<ruby>
|
||||
match ':controller(/:action(/:id))', :controller => /admin\/[^\/]+/
|
||||
|
Loading…
Reference in New Issue
Block a user