From 3532200576bed84bedf3554336dfc92ce9ce1cab Mon Sep 17 00:00:00 2001 From: Steven Soroka Date: Wed, 27 Jul 2011 18:37:06 -0400 Subject: Raise a rescuable exception when Rails doesn't know what to do with the format, rather than responding with a head :not_acceptable (406) --- actionpack/lib/action_dispatch/middleware/exception_wrapper.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionpack/lib/action_dispatch/middleware') diff --git a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb index c0532c80c4..982f6641bf 100644 --- a/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb +++ b/actionpack/lib/action_dispatch/middleware/exception_wrapper.rb @@ -10,6 +10,7 @@ module ActionDispatch 'AbstractController::ActionNotFound' => :not_found, 'ActionController::MethodNotAllowed' => :method_not_allowed, 'ActionController::NotImplemented' => :not_implemented, + 'ActionController::UnknownFormat' => :not_acceptable, 'ActionController::InvalidAuthenticityToken' => :unprocessable_entity ) -- cgit v1.2.3