I had remembered pondering this myself, and it is likely that several
may have as well.
I haven’t tested this yet, but I am under the impression throwing this
inside of a /vendor/plugins/my_engine/lib/routes.rb, very well may work.
It would be great to create an abstract layer ontop of the Rails engines
define new routes. Such as:
Here is the snippet:
ActionController::Routing::Routes.draw do |map| map.connect
map.connect ‘’, :controller => “admin_pages”, :action=>“edit_pages”
map.connect ‘:controller/service.wsdl’, :action => ‘wsdl’
Has anyone else done something like this yet? I think the biggest
to this is doing some new hacks on the ActionController::Routing::Routes
add domain wildcards. So those who are doing username.example.com, can
automatically route it to the specific controller and action.
I will be embarking on this sooner or later, but would be nice to see
else has done what.
Nathaniel S. H. Brown http://nshb.net