class method
self.use_controllers!
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.3.18Available 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_namesreq
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