was missing the action_controller.instance in the rack env, just had to make the call first