calling an ApplicationController method from console

To use ApplicationContoller methods from console.

run this command on console

test = ActionController::Base::ApplicationController.new

test.some_method