This project is archived and is in readonly mode.
Routing with empty path_prefix should not add two / to the url
Reported by João Vitor Lacerda Guimarães | December 14th, 2008 @ 11:36 AM | in 2.x
This route:
map.namespace 'api', :path_prefix => '' do |api| api.route 'inventory', :controller => "products", :action => 'inventory' end
Generates "//inventory" as path and it should generate "/inventory".
The submitted patch was tested on the 2.2-stable branch.
Comments and changes to this ticket
-
CancelProfileIsBroken March 7th, 2009 @ 02:28 PM
- State changed from new to duplicate
Being discussed in #2122
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Tags
Referenced by
- 2122 Routing with a blank path_prefix causes a bad url to generate It appears ticket #1571 is about the same problem.