How to get the currently required controller name

Hi , could i get the controller name in controllers/application_controller.rb file ? Thanks guys.

class Animal   def self.inherited(inheritor)     puts inheritor   end end

class Dog < Animal end

--output:-- Dog

I got it by params[:controller] in rails 3.0.9

If you mean the calling controller...

params[:controller]

HTH, Dan