T
T
Tyhurdos2014-07-31 14:41:59
ruby
Tyhurdos, 2014-07-31 14:41:59

Is it possible to get the name of the called action from the filter?

There is a filter:
before_action FooBar
Is it possible to somehow get the name of the action in FooBar?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
@
@proffard, 2014-07-31
@Tyhurdos

The name of the action must be at least in params[:action] and action_name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question