Forum: Ruby on Rails Routing requests to a default controller module

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.
Jonathan D. (Guest)
on 2006-04-07 22:03

I've been looking for a way to more finely control which module a
request goes to. Basically, by default, I want all requests to
particular module. If a request happens to match a full
module+controller name, then it can route to that request (i.e. the
default case). So basically something like:

map.connect ':controller/:action/:id', :controller =>

map.connect ':controller/:action/:id'

...except I made up the first line. Is there any way to do this (easily
or otherwise)? I was digging around in action_controller/routing.rb and
I figure I might be able to make a modification to
traverse_to_controller to do this.

This topic is locked and can not be replied to.