aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorTrevor Turk <trevorturk@gmail.com>2013-02-28 15:40:25 -0600
committerTrevor Turk <trevorturk@gmail.com>2013-02-28 15:40:25 -0600
commit74d471a4aaa4b6e7e8d51ff6c68ce158a06e5e58 (patch)
tree586a2621f7d603dcfe75e4619cbda1d761a80d62 /guides
parent97d9843ef562e7ba9de9e5db5a7ff63bec1f53a7 (diff)
downloadrails-74d471a4aaa4b6e7e8d51ff6c68ce158a06e5e58.tar.gz
rails-74d471a4aaa4b6e7e8d51ff6c68ce158a06e5e58.tar.bz2
rails-74d471a4aaa4b6e7e8d51ff6c68ce158a06e5e58.zip
Document change in routes using match
Diffstat (limited to 'guides')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index 4eb5eff40f..e7459ff77b 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/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: