class AbstractController::Base
def controller_path
==== Returns
controller_name.
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