diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-02-19 20:19:14 -0800 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-02-19 20:19:14 -0800 |
commit | 862e75160b0856c3f9165601b3c11b881e0844b9 (patch) | |
tree | 77d4490af274fccd7b934bf25e3c0728d98e0909 /guides | |
parent | c2c203c852cea1246ffe77430c6b61c2d4c0f75a (diff) | |
parent | cb5ccf416031d4c18889c1cb5c9c425eaafc8ac9 (diff) | |
download | rails-862e75160b0856c3f9165601b3c11b881e0844b9.tar.gz rails-862e75160b0856c3f9165601b3c11b881e0844b9.tar.bz2 rails-862e75160b0856c3f9165601b3c11b881e0844b9.zip |
Merge pull request #9331 from robertomiranda/upgrading-guide
Improve upgrading guide with ActionDispatch::BestStandardsSupport remova...
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index d6c90dbe9c..18baed55b5 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -83,6 +83,16 @@ get 'こんにちは', controller: 'welcome', action: 'index' ``` * Rails 4.0 has removed ActionDispatch::BestStandardsSupport middleware, !DOCTYPE html already triggers standards mode per http://msdn.microsoft.com/en-us/library/jj676915(v=vs.85).aspx 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: + +```ruby +# 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 |