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