Converts the class name from something like "OneModule::TwoModule::NeatController" to "neat".
# File action_controller/base.rb, line 399 def controller_name @controller_name ||= controller_class_name.sub(/Controller$/, '').underscore end
<code/>
<pre/>
<code/>and<pre/>for code samples.