class method
self.dispatch
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
self.dispatch(name, req, res)
Direct dispatch to the controller. Instantiates the controller, then executes the action named name.
Parameters
-
namereq -
reqreq -
resreq
Source
# File actionpack/lib/action_controller/metal.rb, line 305
def self.dispatch(name, req, res)
if middleware_stack.any?
middleware_stack.build(name) { |env| new.dispatch(name, req, res) }.call req.env
else
new.dispatch(name, req, res)
end
end
Defined in actionpack/lib/action_controller/metal.rb line 305
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Metal