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.
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