diff options
author | Rafael Magana <raf.magana@gmail.com> | 2012-05-22 21:33:49 -0500 |
---|---|---|
committer | Rafael Magana <raf.magana@gmail.com> | 2012-05-22 21:33:49 -0500 |
commit | 83f62a069e6723c994365855bd9509d5b1a218bc (patch) | |
tree | db19ac0156b2e09f497d556e7df1e901855188ab /guides | |
parent | 3f870f607d2c1f422d0699e85017e5289aebef97 (diff) | |
download | rails-83f62a069e6723c994365855bd9509d5b1a218bc.tar.gz rails-83f62a069e6723c994365855bd9509d5b1a218bc.tar.bz2 rails-83f62a069e6723c994365855bd9509d5b1a218bc.zip |
use ApplicationName::Application instead of ActionController::Dispatcher.new since Dispatcher class no longer exists
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/rails_on_rack.textile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/guides/source/rails_on_rack.textile b/guides/source/rails_on_rack.textile index d8910cf1d0..0080982b67 100644 --- a/guides/source/rails_on_rack.textile +++ b/guides/source/rails_on_rack.textile @@ -23,7 +23,7 @@ h3. Rails on Rack h4. Rails Application's Rack Object -<tt>ActionController::Dispatcher.new</tt> is the primary Rack application object of a Rails application. Any Rack compliant web server should be using +ActionController::Dispatcher.new+ object to serve a Rails application. +<tt>ApplicationName::Application</tt> is the primary Rack application object of a Rails application. Any Rack compliant web server should be using +ApplicationName::Application+ object to serve a Rails application. h4. +rails server+ @@ -36,7 +36,7 @@ app = Rack::Builder.new { use Rails::Rack::LogTailer unless options[:detach] use Rails::Rack::Debugger if options[:debugger] use ActionDispatch::Static - run ActionController::Dispatcher.new + run ApplicationName::Application }.to_app </ruby> @@ -57,7 +57,7 @@ require "config/environment" use Rails::Rack::LogTailer use ActionDispatch::Static -run ActionController::Dispatcher.new +run ApplicationName::Application </ruby> And start the server: @@ -111,7 +111,7 @@ use ActionDispatch::Head use Rack::ConditionalGet use Rack::ETag use ActionDispatch::BestStandardsSupport -run Blog::Application.routes +run ApplicationName::Application.routes </ruby> Purpose of each of this middlewares is explained in the "Internal Middlewares":#internal-middleware-stack section. @@ -172,7 +172,7 @@ use ActionDispatch::Static use #<ActiveSupport::Cache::Strategy::LocalCache::Middleware:0x00000001c304c8> use Rack::Runtime ... -run Myapp::Application.routes +run Blog::Application.routes </shell> h4. Internal Middleware Stack @@ -264,7 +264,7 @@ config.middleware.clear <ruby> # config.ru use MyOwnStackFromScratch -run ActionController::Dispatcher.new +run ApplicationName::Application </ruby> h3. Resources |