rails/rails — Issue #3293: rails 3.1 route error with 2 parameters
Author: maskiran
Created: 2011-10-11 13:17:24+00:00
State: open

[06:14:59 newapp]$ cat config/routes.rb
Newapp::Application.routes.draw do

match 'bugs/:pr/:scope/info' => 'bugs#info', :as=>:bug_info
end

[06:14:54 newapp]$ rake routes
bug_info /bugs/:pr/:scope/info(.:format) {:controller=>"bugs", :action=>"info"}

When I access /bugs/1234/abc/info, it gives me

Routing Error

No route matches [GET] "/bugs/1101/2/3/10.4/info"

Instead of :pr/:scope, if I provide *pr/*scope, everything works fine. However this might cause a problem if the user provides invalid params (like providing more than i want)