search for: brocontrol

Displaying 1 result from an estimated 1 matches for "brocontrol".

Did you mean: procontrol
2008 Apr 02
3
Routing and default module
I would like to route all requests with the path "foo/:controller/:action" to a modulized controller like ''bar/#{controller}''. So "foo/bro/index" goes to Bar::BroController, "foo/baz/index" goes to Bar::BazController, etc. I''m stumped as to how to write a one-line route for this. What I want to do is something like map.connect ''foo/:controller/:action'', :controller => ''bar/#{controller}'' but that doesn&...