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

we can deny everything, except that we have the possibility of being
better. simply reflect on that.
h.h. the 14th dalai lama