aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorTrevor Turk <trevorturk@gmail.com>2013-02-28 15:55:27 -0600
committerTrevor Turk <trevorturk@gmail.com>2013-02-28 15:55:27 -0600
commit7874c9be8393bacf060d2df7af468fa3b83d9f27 (patch)
treead966af438f425f5bd38f2417ada6ed11371d0eb /guides/source/upgrading_ruby_on_rails.md
parent5b8b9771d7c8b45eb9f0c0ca640420eb91b8f037 (diff)
downloadrails-7874c9be8393bacf060d2df7af468fa3b83d9f27.tar.gz
rails-7874c9be8393bacf060d2df7af468fa3b83d9f27.tar.bz2
rails-7874c9be8393bacf060d2df7af468fa3b83d9f27.zip
Document introduction of ActionDispatch::ParamsParser::ParseError
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 77a09cd5f0..9581cb5c21 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/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.