aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/rails_on_rack.md
diff options
context:
space:
mode:
authorAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-16 14:48:17 +0200
committerAgis Anastasopoulos <corestudiosinc@gmail.com>2012-11-16 14:48:17 +0200
commit8be3a1a9a4f3c9ba66a320bfa3fa9cbc53ca7fd5 (patch)
tree8b613905d50de7d728091f16237a1229083ef0e6 /guides/source/rails_on_rack.md
parent3ad89fced21d896a70a8bffb5e6e2146ff36135d (diff)
downloadrails-8be3a1a9a4f3c9ba66a320bfa3fa9cbc53ca7fd5.tar.gz
rails-8be3a1a9a4f3c9ba66a320bfa3fa9cbc53ca7fd5.tar.bz2
rails-8be3a1a9a4f3c9ba66a320bfa3fa9cbc53ca7fd5.zip
Update the middleware stack to reflect the current Rails output
Specifically, remove `ActionDispatch::Head` in favor of `Rack::Head`.
Diffstat (limited to 'guides/source/rails_on_rack.md')
-rw-r--r--guides/source/rails_on_rack.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md
index b55fd2c6ca..afd1638ed9 100644
--- a/guides/source/rails_on_rack.md
+++ b/guides/source/rails_on_rack.md
@@ -132,11 +132,11 @@ use ActionDispatch::Cookies
use ActionDispatch::Session::CookieStore
use ActionDispatch::Flash
use ActionDispatch::ParamsParser
-use ActionDispatch::Head
+use Rack::Head
use Rack::ConditionalGet
use Rack::ETag
use ActionDispatch::BestStandardsSupport
-run ApplicationName::Application.routes
+run MyApp::Application.routes
```
Purpose of each of this middlewares is explained in the [Internal Middlewares](#internal-middleware-stack) section.