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.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---