virtual controller

anyone have thoughts on how a library could mount an action to a route *without* messing with routes.rb or generating an actual controller?

something along the lines of

   class ActionController::Base      def global() render :text => '42' end    end

   ActionController::Routing::Routes.add_route '/global', ...

??

in otherwords have a library mount an action to a route without generating code or editing files.

cheers.

-a