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)
this:
puts rs.routes
ANY /:controller/service.wsdl/ {:action=>“wsdl”}
ANY /:controller/:action/:id/ {}
=> nil
Instead, it returns something like:
#ActionController::Routing::Route:0x2adabc6a24f0
… (three more of those, different memore addresses(?) at the end of
each)
=> nil
ActionPack gem is 1.12.5, I believe.