This project is archived and is in readonly mode.

#1314 ✓committed
richy zhang

an RoutingError of prefix path

Reported by richy zhang | November 1st, 2008 @ 02:13 AM

The newest Rails 2.2rc1 seems to have a routing error if it's used with a URL prefix.

After creating a new app named msp, if I used the command


ruby script/server
or
mongrel_rails start

to start the app, everything is well. But, when I used the command


mongrel_rails start --prefix /msp

an ActionController::RoutingError raised and the log report


ActionController::RoutingError (No route matches "/msp/users/1" with {:method=>:get}):
    /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.0/lib/action_controller/routing/recognition_optimisation.rb:66:in `recognize_path'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.0/lib/action_controller/routing/route_set.rb:385:in `recognize'
    /usr/local/ruby/lib/ruby/gems/1.8/gems/actionpack-2.2.0/lib/action_controller/dispatcher.rb:179:in `handle_request'

When it's deployed to the phusion passenger, the result is almost same.

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="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Attachments

Tags

Pages