Methods
- C
Instance Public methods
call(env)
Link
# File actionpack/test/dispatch/show_exceptions_test.rb, line 6 def call(env) req = ActionDispatch::Request.new(env) case req.path when "/not_found" raise AbstractController::ActionNotFound when "/bad_params", "/bad_params.json" begin raise StandardError.new rescue raise ActionDispatch::ParamsParser::ParseError end when "/method_not_allowed" raise ActionController::MethodNotAllowed, 'PUT' when "/unknown_http_method" raise ActionController::UnknownHttpMethod when "/not_found_original_exception" begin raise AbstractController::ActionNotFound.new rescue raise ActionView::Template::Error.new('template') end else raise "puke!" end end