Monday, 3 September 2012

calling an ApplicationController method from console

Hi,

Recently I had a issue with one of the thing and I was supposed to debug it by calling an ApplicationController method from console. Below is the way of doing it.


> object_for_application = ActionController::Base::ApplicationController.new

> object_for_application.my_method


Thank You,
Uma Mahesh.

No comments:

Post a Comment