标签: ruby-on-rails ruby-on-rails-3
我的路线看起来像这样: match '/:id/*url', to: 'main#parse', :constraints => {:url => /.*/}, as: 'parser', via: 'get'
match '/:id/*url', to: 'main#parse', :constraints => {:url => /.*/}, as: 'parser', via: 'get'
当我输入如下所示的网址时: http://www.domain.com/foo/http://www.bar.com
http://www.domain.com/foo/http://www.bar.com
然后url param总是似乎剥离了一个正斜杠,留下了我的http:/www.bar.com
我怎样才能保持双斜线?
谢谢!