method
controller_path
rails latest stable - Class:
AbstractController::Base
controller_path()public
Returns the full controller name, underscored, without the ending Controller.
class MyApp::MyPostsController < AbstractController::Base end MyApp::MyPostsController.controller_path # => "my_app/my_posts"