Method: Gin::App#dispatch
- Defined in:
- lib/gin/app.rb
#dispatch(env) ⇒ Object
Dispatch the Rack env to the given controller and action.
986 987 988 989 990 991 992 993 994 995 996 |
# File 'lib/gin/app.rb', line 986 def dispatch env raise Gin::NotFound, "No route exists for: #{env[REQ_METHOD]} #{env[PATH_INFO]}" unless env[GIN_TARGET] env[GIN_APP] = self env[GIN_TARGET][0].call(env) rescue ::Exception => err handle_error(err, env) end |