Browse files

Document caveat from 5b3bb61 which fixed handling SCRIPT_NAME from wi…

…thin mounted engine
  • Loading branch information...
1 parent 1525268 commit 8ecc2edcd0b9ff3e03c427fdbdeb329d4e65ac60 @trevorturk trevorturk committed Feb 28, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 guides/source/
@@ -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`.

0 comments on commit 8ecc2ed

Please sign in to comment.