Forum: Ruby on Rails Debugging a routing error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
E2cbe5dbb2d94f4522708d3d94b3bcf8?d=identicon&s=25 Ming (Guest)
on 2007-07-14 20:47
(Received via mailing list)
How do I debug a routing error?

I've been running examples from the Agile Rails book just fine to the
end of Chapter 8, cart creation. Then the next morning my installation
stopped working.

"no route found to match "/store" with {:method=>:get}"

attempting to debug:

>> rs = ActionController::Routing::Routes
>> rs.recognize_path "/store"
=> {:controller=>"store", :action=>"index"}

the problem persists despite making the suggestion of changing

root_path =

in config/boot.rb for my rails 1.2.3 installation.

B09a3f6cdc4797532647d2d264b5df49?d=identicon&s=25 Jodi Showers (jshow)
on 2007-07-14 20:58
(Received via mailing list)
Ming -

On 14-Jul-07, at 2:46 PM, Ming wrote:

I've found Rick's routing_navigator[1] plugin to be helpful.

Plus topfunky's "REST Cheetsheet"[2] is a darling.


E60b2dc57668b5662ce3f07781e41710?d=identicon&s=25 Matthew Rudy Jacobs (matthewrudy)
on 2007-07-14 21:16
what does your routes.rb look like?

> "no route found to match "/store" with {:method=>:get}"
> attempting to debug:
>>> rs = ActionController::Routing::Routes
>>> rs.recognize_path "/store"
> => {:controller=>"store", :action=>"index"}
E2cbe5dbb2d94f4522708d3d94b3bcf8?d=identicon&s=25 Ming (Guest)
on 2007-07-15 10:46
(Received via mailing list)

ActionController::Routing::Routes.draw do |map|
  map.connect ':controller/:action/:id.:format'
  map.connect ':controller/:action/:id'

On Jul 14, 3:16 pm, Matthew Rudy <>
E2cbe5dbb2d94f4522708d3d94b3bcf8?d=identicon&s=25 Ming (Guest)
on 2007-07-15 10:47
(Received via mailing list)
Jodi -

The pdf looks really cool...  though at this stage of my railship, i'm
not sure what to make of it...

I might to install Edge Rails and Rick's routing_navigator plugin to
get to the root of my problem

E2cbe5dbb2d94f4522708d3d94b3bcf8?d=identicon&s=25 Ming (Guest)
on 2007-07-15 10:48
(Received via mailing list)
i meant to say that in boot.rb i changed

root_path =


root_path =


this has not helped...
E2cbe5dbb2d94f4522708d3d94b3bcf8?d=identicon&s=25 Ming (Guest)
on 2007-07-15 20:34
(Received via mailing list)
i fixed the problem by uninstalling and reinstalling the rails gem.

apparently i have a version of the elsewhere reported spurious routes
for rails 1.2.3 that doesn't get fixed by adding realpath to

root_path =

thanks to all who responded.
This topic is locked and can not be replied to.