Skip to content

Commit

Permalink
revised titles of rack guide
Browse files Browse the repository at this point in the history
  • Loading branch information
fxn committed Mar 14, 2009
1 parent cd2475a commit 4c42698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions railties/guides/source/rails_on_rack.textile
Expand Up @@ -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.

Expand All @@ -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:

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 4c42698

Please sign in to comment.