method
controller_path
v5.0.0.1 -
Show 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"