Class Merb::Dispatcher
In: lib/merb-core/dispatch/dispatcher.rb
Parent: Object

Methods

handle  

Constants

DEFAULT_ERROR_TEMPLATE = File.expand_path(File.dirname(__FILE__) / 'exceptions.html')

Attributes

use_mutex  [RW] 

Public Class methods

This is where we grab the incoming request REQUEST_URI and use that in the merb RouteMatcher to determine which controller and method to run. Returns a 2 element tuple of: [controller, action]

ControllerExceptions are rescued here and redispatched.

Parameters

rack_env<Rack::Environment>:The rack environment, which is used to instantiate a Merb::Request
response<IO>:An IO object to hold the response

Returns

Array[Merb::Controller, Symbol]:An array containing the Merb::Controller and the action that was dispatched to.

[Validate]