Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Document introduction of ActionDispatch::ParamsParser::ParseError

  • Loading branch information...
commit 7874c9be8393bacf060d2df7af468fa3b83d9f27 1 parent 5b8b977
@trevorturk trevorturk authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  guides/source/upgrading_ruby_on_rails.md
View
2  guides/source/upgrading_ruby_on_rails.md
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.