Permalink
Browse files

Document change in routes using match

  • Loading branch information...
1 parent 97d9843 commit 74d471a4aaa4b6e7e8d51ff6c68ce158a06e5e58 @trevorturk trevorturk committed Feb 28, 2013
Showing with 13 additions and 0 deletions.
  1. +13 −0 guides/source/upgrading_ruby_on_rails.md
@@ -101,6 +101,19 @@ becomes
get 'こんにちは', controller: 'welcome', action: 'index'
```
+* Rails 4.0 requires routes using `match` must specify the request method. For example:
+
+```ruby
+ # Rails 3.x
+ match "/" => "root#index"
+
+ # becomes
+ match "/" => "root#index", via: :get
+
+ # or
+ get "/" => "root#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:

0 comments on commit 74d471a

Please sign in to comment.