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
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
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs