Is there a way to "call" a controller from another part of the app?
I'm breaking off some functionality (statistics reporting) from the
rest of the app. Eventually, this functionality will live in a
different app, but for ease of development, I'd like to keep
everything in the same app for now. So the stats client (a lib class)
would like to do a "get" on the stats controller in the same app.
I can't use render_component, because I'm not in a view/controller. I
apparently can't use ActionController::Integration::Session because,
while it works fine in RSpec tests, when I use it under mongrel, I get
a stack overrun when I require 'action_controller/integration'.
I'd like to put off maintaining two applications for as long as
possible. Any thoughts?
(Hmmm...can I just instantiate the controller? I'll try that.)