class method self.use_controllers!

Ruby on Rails 2.2.3

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

self.use_controllers!(controller_names)

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

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

Parameters

controller_names req
Source
# File actionpack/lib/action_controller/routing.rb, line 344
      def use_controllers!(controller_names)
        @possible_controllers = controller_names
      end

Defined in actionpack/lib/action_controller/routing.rb line 344 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::Routing

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close