Is there a way to get the name of the currently executing Action and its
Controller?
I want to be able to call a method from within an action and in that
method get the name of the calling action.
Example:
class MyController < ApplicationController
def method1
myFunction()
.
.
.
end
end # MyController
Now in the myFunction code, I want to be able to see that it was called
by method1 method of MyController.
I guess I’m essentially trying to see the call chain. Is there a way to
do this in Rails?
Thanks in advance…