class AbstractController::Base

def controller_path

* String
==== Returns

controller_path.
For instance, MyApp::MyPostsController would return "my_app/my_posts" for
Returns the full controller name, underscored, without the ending Controller.
def controller_path
  @controller_path ||= name.sub(/Controller$/, '').underscore unless anonymous?
end