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