method
controller_name
v3.0.9 -
Show latest stable
- Class:
ActionController::Metal
controller_name()public
Returns the last part of the controller’s name, underscored, without the ending “Controller”. For instance, MyApp::MyPostsController would return “my_posts” for controller_name