Browse files

Document introduction of ActionDispatch::ParamsParser::ParseError

  • Loading branch information...
1 parent 5b8b977 commit 7874c9be8393bacf060d2df7af468fa3b83d9f27 @trevorturk trevorturk committed Feb 28, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 guides/source/
@@ -143,6 +143,8 @@ Also check your environment settings for `config.action_dispatch.best_standards_
* In Rails 4.0, a rescuable exception `ActionController::UnknownFormat` is raised when Rails doesn't know what to do with the request format, rather than responding with a head :not_acceptable (406).
+* In Rails 4.0 a generic rescuable exception `ActionDispatch::ParamsParser::ParseError` is raised when `ParamsParser` fails parsing request params. You will want to rescue from this generic exception instead of `MultiJson::DecodeError`, for example.
* In Rails 4.0, `SCRIPT_NAME` is properly handled for mounted apps and engines. One caveat of the fix is that you should *not* set
`default_url_options[:script_name]` explicitly if your server already passes correct `SCRIPT_NAME` to rack env.

0 comments on commit 7874c9b

Please sign in to comment.