dispatch(name, req, res)
public
Direct dispatch to the
controller. Instantiates the controller, then executes the action named `name`.
# File actionpack/lib/action_controller/metal.rb, line 331
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