Re: url parameter :id with slash (/) failed to route

Alex W. wrote:

Gary L. wrote:
My routes.rb is something like
map.connect ‘:controller/:action/:id’
However, when a url request likes
http://xxx/user/category/a/b

However, :id has slash in it (a/b) will make rails fail to route.
(apache fail, webrick works fine somehow)
Rails routes really don’t like to do that. I would recommend coming
up
with a diiferent way to handle those id’s that doesn’t require a
slash.

The solution is here:
http://blog.chanezon.com/articles/2005/05/20/rails-tip-create-a-route-
with-an-arbitrary-number-of-parameters

==
=mmell