[Ruby on Rails] How to Get Current Controller Name and Action Name in Views

Tadashi Shigeoka ·  Sun, February 17, 2013

A memo on how to get the current controller name and action name in views in Ruby on Rails.

controller.controller_name
controller.action_name

[Reference]:How to Reference Current Controller Name and Action Name in Rails Views #Rails - Qiita

That’s all from the Gemba.