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

Returns

String

Show source
Register or log in to add new notes.