instance method
dispatch
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
Signature
dispatch()
No documentation comment.
Source
# File actionpack/lib/action_controller/dispatcher.rb, line 84
def dispatch
begin
run_callbacks :before_dispatch
Routing::Routes.call(@env)
rescue Exception => exception
if controller ||= (::ApplicationController rescue Base)
controller.call_with_exception(@env, exception).to_a
else
raise exception
end
ensure
run_callbacks :after_dispatch, :enumerator => :reverse_each
end
end
Defined in actionpack/lib/action_controller/dispatcher.rb line 84
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Dispatcher