Find out the name of the currently :action

Hi,
How do i find out the name of the currently ran action?
request.parameters contains more information than i need. I just want to
store the name of the current action in a variable.

Any ideas people?

Thanks
Petr

You could try:

@action_name = params[:action]

Gustav
[email protected]

To get the name of the controller or action:
controller.controller_name
controller.action_name

On Oct 15, 2006, at 12:13, Petr wrote:

How do i find out the name of the currently ran action?
request.parameters contains more information than i need. I just
want to
store the name of the current action in a variable.

params[:action] or controller.action_name


Jakob S. - http://mentalized.net

Are these methods considered ‘better’ than what I’ve been using:

request.symbolized_path_parameters[:action]

?

-Jared