Let’s say I’m using before_filter in my controller:
before_filter :setup
def setup
# do something here
end
Is there any way my setup method can know which action is really about
to be called? Let’s say I want to log out which action is going to be
called, how can I know that in the before_filter method? (My question
is not really about logging, that’s just an example).