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

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
with a diiferent way to handle those id’s that doesn’t require a

The solution is here:


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs