Skip to content

Commit

Permalink
Merge pull request #9331 from robertomiranda/upgrading-guide
Browse files Browse the repository at this point in the history
Improve upgrading guide with ActionDispatch::BestStandardsSupport remova...
  • Loading branch information
guilleiguaran committed Feb 20, 2013
2 parents c2c203c + cb5ccf4 commit 862e751
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions guides/source/upgrading_ruby_on_rails.md
Expand Up @@ -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
Expand Down

0 comments on commit 862e751

Please sign in to comment.