Logging actions

It's
controller.controller_name and
controller.action_name

Nick Brutyn wrote:

Nick Brutyn wrote:

Jason Norris wrote:

It's
controller.controller_name and
controller.action_name

This doesnt seem to work: i get this error

NameError in Backend/productsController#update
undefined local variable or method `controller' for
#<Backend::ProductsController:0x4aa78b0>

controller.controller_name is for views. Inside a controller, the controller is 'self'.