Skip to content

Commit

Permalink
Modifed README. Middleware has to be inserted first.
Browse files Browse the repository at this point in the history
  • Loading branch information
boof committed Sep 30, 2011
1 parent 6ef2120 commit 36c400e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Expand Up @@ -32,10 +32,14 @@ Note: This gem should only be used in development. For production use setup varn
use Rack::ESI, options || {}
run Application.new

### Rails (only tested with 3.1 so far): environment.rb
### Rails 2.3: environment.rb

config.gem 'rack-esi' # for setups w/o Gemfile
config.middleware.insert_before Rails::Rack::Logger, Rack::ESI
config.middleware.unshift Rack::ESI

### Rails 3.1: application.rb

config.middleware.insert_before ActionDispatch::Static, Rack::ESI

## Options

Expand Down

0 comments on commit 36c400e

Please sign in to comment.