Flowdock
method

controller_name

Importance_1
v3.1.0 - Show latest stable - 0 notes - Class: ActionController::Metal
controller_name() public

Returns the last part of the controller’s name, underscored, without the ending Controller. For instance, PostsController returns posts. Namespaces are left out, so Admin::PostsController returns posts as well.

Returns

  • string

Show source
Register or log in to add new notes.