Hi
I have a controller-namespace conference/*, i.e. the controller
classes within it look like Conference::RegistrationController.
The problem is that now I need to route www.example.com/conf to the
conference namespace. If I try to capture :controller through
map.connect ‘:controller/:action/:id’
I get it glued with the namespace, i.e. :controller ==
‘/conf/registration’. In routes.rb I have no access to the captured
parts for the URL, so I can’t extract the ‘registration’ part with
#split or a regex. And even if I somehow could - there’s no way to put
it back together to point to the conference/* namespace, i.e. you
can’t do something like:
:controller => ‘conference/’ + extracted_part
Did I miss anything? Any good way to solve this?