Routing requests to a default controller module

Howdy,

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 =>
“DefaultModule::#{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.

JD