Skip to content

Commit

Permalink
Updated the README to improve Rails-specific documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cainã Costa committed Feb 19, 2011
1 parent 5e9e424 commit 3d82023
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions README.markdown
Expand Up @@ -4,9 +4,21 @@

All requests are created on a separated thread, so it won't add a lot of overhead on each requests.

## Instalation ##
## Installation on Rails 3 ##

If you're using Bundler (like Rails 3, for example), you can add this line on your `Gemfile`:
Add this line on your `Gemfile`:

gem 'rack-analytics'

Run `rails generate rack-analytics:install` to install the initializer file on `config/initializers/rack-analytics.rb`. Some configuration options are highlighted on this file.

Then, on your `config/application.rb`, add the following line after inside your Application class:

config.middlewares.insert_after Rack::Lock, Rack::Analytics::RequestLogger

## Installation on another Rack applications ##

If you're using Bundler, you can add this line on your `Gemfile`:

gem 'rack-analytics'

Expand Down Expand Up @@ -84,4 +96,4 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE

Those are the people that helped me with this project, both with code and/or with guidance. Put your name here if you create a pull request and think you deserves it!

* Rafael França <rafael.ufs@gmail.com>
* Rafael França <rafael.ufs@gmail.com>

0 comments on commit 3d82023

Please sign in to comment.