diff options
author | Xavier Noria <fxn@hashref.com> | 2009-03-14 21:57:39 +0100 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2009-03-14 22:20:04 +0100 |
commit | 4c426984e120e91271f091075d04727625db9081 (patch) | |
tree | a0ce0aee2a28a29dfda13b187422ad83e5540e17 /railties/guides/source/rails_on_rack.textile | |
parent | cd2475a5c85bb88cffc7df0bab80d9d7de5e389d (diff) | |
download | rails-4c426984e120e91271f091075d04727625db9081.tar.gz rails-4c426984e120e91271f091075d04727625db9081.tar.bz2 rails-4c426984e120e91271f091075d04727625db9081.zip |
revised titles of rack guide
Diffstat (limited to 'railties/guides/source/rails_on_rack.textile')
-rw-r--r-- | railties/guides/source/rails_on_rack.textile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/railties/guides/source/rails_on_rack.textile b/railties/guides/source/rails_on_rack.textile index 0f3823e6f0..c323467fcd 100644 --- a/railties/guides/source/rails_on_rack.textile +++ b/railties/guides/source/rails_on_rack.textile @@ -30,7 +30,7 @@ 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.</p> -h4. script/server +h4. +script/server+ <tt>script/server</tt> does the basic job of creating a +Rack::Builder+ object and starting the webserver. This is Rails' equivalent of Rack's +rackup+ script. @@ -55,7 +55,7 @@ Middlewares used in the code above are primarily useful only in the development |Rails::Rack::Static|Serves static files inside +RAILS_ROOT/public+ directory| |Rails::Rack::Debugger|Starts Debugger| -h4. rackup +h4. +rackup+ To use +rackup+ instead of Rails' +script/server+, you can put the following inside +config.ru+ of your Rails application's root directory: @@ -151,7 +151,7 @@ You can swap an existing middleware in the middleware stack using +config.middle config.middleware.swap ActionController::Failsafe, Lifo::Failsafe </ruby> -h5. Middleware stack is an array +h5. Middleware Stack is an Array The middleware stack behaves just like a normal +Array+. You can use any +Array+ methods to insert, reorder, or remove items from the stack. Methods described in the section above are just convenience methods. |