Browse files

Improve upgrading guide with ActionDispatch::BestStandardsSupport rem…

  • Loading branch information...
1 parent c2c203c commit cb5ccf416031d4c18889c1cb5c9c425eaafc8ac9 @robertomiranda robertomiranda committed Feb 20, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 guides/source/
10 guides/source/
@@ -83,6 +83,16 @@ get 'こんにちは', controller: 'welcome', action: 'index'
* Rails 4.0 has removed ActionDispatch::BestStandardsSupport middleware, !DOCTYPE html already triggers standards mode per and ChromeFrame header has been moved to `config.action_dispatch.default_headers`
+Remember you must also remove any references to the middleware from your application code, for example:
+# Raise exception
+config.middleware.insert_before(Rack::Lock, ActionDispatch::BestStandardsSupport)
+Also check your environment settings for `config.action_dispatch.best_standards_support` and remove it if present.
* In Rails 4.0, precompiling assets no longer automatically copies non-JS/CSS assets from `vendor/assets` and `lib/assets`. Rails application and engine developers should put these assets in `app/assets` or configure `config.assets.precompile`.
### Active Support

0 comments on commit cb5ccf4

Please sign in to comment.