Hi, I have this code in a plugin: module ActionController module Routing def default_controller ActionController::Routing::Routes.routes[0].requirements[:controller] end def default_action ActionController::Routing::Routes.routes[0].requirements[:action] end end end And I expected that default_controller and default_action would be available everywhere. But they aren''t! How can I make them available elsewhere? Now I would like to use them in another plugin. Thanks! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---