Forum: Ruby on Rails JART (Just Another Routing Thread)

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.
D190b556d99e97168d2ff1adf3b43575?d=identicon&s=25 Bryan Cox (deuceofhearts)
on 2006-12-24 22:53
Hopefully this routing thread will be a bit different from other ones.

I'm trying to learn more about routing so that I can become a
question-answerer and not a question-asker.  I'm reading AWDwRv2, the
section on Action Controller, Routing and URLS (in the print version,
it's Chapter 20, page 392).

I'm trying to play around with the IRB examples in the chapter, and I'm
hitting a stonewall almost immediately.  After starting a script/console
session and assigning rs to ActionController::Routing::Routes as it
suggests, I get the proper output.  But when I try to examine my routes
by entering:

puts rs.routes

It does not return the expected output, which is (according to the book)

>> puts rs.routes
ANY /:controller/service.wsdl/ {:action=>"wsdl"}
ANY /:controller/:action/:id/ {}
=> nil

Instead, it returns something like:

... (three more of those, different memore addresses(?) at the end of
=> nil

ActionPack gem is 1.12.5, I believe.
D190b556d99e97168d2ff1adf3b43575?d=identicon&s=25 Bryan Cox (deuceofhearts)
on 2006-12-24 22:55
Right, so my implied question (now explicitly stated) is this:

What is going on?  Has something changed in rails?
This topic is locked and can not be replied to.