aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrevor Turk <trevorturk@gmail.com>2013-02-28 15:19:54 -0600
committerTrevor Turk <trevorturk@gmail.com>2013-02-28 15:19:54 -0600
commit8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60 (patch)
treed296348a31af55bcdaff7d58db066e42911a4512
parent1525268d1ec74cdc34559907ddfb5b1cc6c30029 (diff)
downloadrails-8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60.tar.gz
rails-8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60.tar.bz2
rails-8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60.zip
Document caveat from 5b3bb61 which fixed handling SCRIPT_NAME from within mounted engine
-rw-r--r--guides/source/upgrading_ruby_on_rails.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 2e1f7118e1..950290d106 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -116,6 +116,9 @@ 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, `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.
+
### Active Support
Rails 4.0 removes the `j` alias for `ERB::Util#json_escape` since `j` is already used for `ActionView::Helpers::JavaScriptHelper#escape_javascript`.