# File lib/action_controller/base.rb, line 400 def controller_name @controller_name ||= controller_class_name.sub(/Controller$/, '').underscore end