This project is archived and is in readonly mode.

#1571 ✓duplicate
João Vitor Lacerda Guimarães

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

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=""></a>


Referenced by