OK. The problem was that I mixed (well I believe that was the problem)
unix and windows characters. When I threw the file away and typed it
from scratch the problem was solved.
ActionController::Routing::Routes.routes[0].requirements[:controller]
end
def get_default_action
ActionController::Routing::Routes.routes[0].requirements[:action]
end
end
end
But when I do this in a view: <%= debug
ActionController::Routing.get_default_controller %>
I get this error: undefined method `get_default_controller’ for
ActionController::Routing:Module