Michael Mell
2006-Jul-07 22:00 UTC
[Rails] Re: url parameter :id with slash (/) failed to route
Alex Wayne wrote: >> Gary Lin 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
Possibly Parallel Threads
- url parameter :id with slash (/) failed to route
- How to Auto Add forward slash "/" when accessing a link/url through ProxyPass
- how to replace a single backward slash with a double backward slash?
- how to replace a single forward slash with a double backward slash in a string?
- IMAP --> Creating Folders --> trailing slash