method

use_controllers!

rails latest stable - Class: ActionController::Routing

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

use_controllers!(controller_names)
public

Replaces the internal list of controllers available to ActionController::Routing with the passed argument.

  ActionController::Routing.use_controllers!([ "posts", "comments", "admin/comments" ])