From 8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60 Mon Sep 17 00:00:00 2001 From: Trevor Turk Date: Thu, 28 Feb 2013 15:19:54 -0600 Subject: Document caveat from 5b3bb61 which fixed handling SCRIPT_NAME from within mounted engine --- guides/source/upgrading_ruby_on_rails.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'guides/source/upgrading_ruby_on_rails.md') 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`. -- cgit v1.2.3