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

If you mean the calling controller…

params[:controller]

HTH,
Dan

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

2011/8/25 7stud – [email protected]