I need a way to run controller actions manually "offline" and store the result output.
Looking into controller initialization, it seems nothing interesting happens there.
send_action, it seems by the time this is called, the controller instance already knows much about the action! (e.g.
@_env, etv... are already set!).
I need to understand where that happened so I can do in manually to a controller instance. I have never quite figured out how to navigate code as dynamic as Rails, and cannot seem to find out where this set up occurs. I've used
caller in a few places to understand how actions get called but haven't found the code I'm looking for.
Any help is appreciated.