Skip to content

Commit

Permalink
README updated
Browse files Browse the repository at this point in the history
  • Loading branch information
zevarito committed Jul 16, 2010
1 parent a636a58 commit 8253ffa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ http://mixpanel.com

== How to use it with a Rails application?

In your environment config file add this.

Rails::Initializer.run do |config|

config.middleware.use "MixpanelMiddleware", "YOUR_MIXPANEL_API_TOKEN"

In your application_controller class add a method to instance mixpanel.

before_filer :initialize_mixpanel
Expand Down
2 changes: 1 addition & 1 deletion mixpanel.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ files = ['README.rdoc', 'LICENSE', 'Rakefile', 'mixpanel.gemspec', '{spec,lib}/*

spec = Gem::Specification.new do |s|
s.name = "mixpanel"
s.version = "0.6.0"
s.version = "0.6.1"
s.rubyforge_project = "mixpanel"
s.description = "Simple lib to track events in Mixpanel service. It can be used in any rack based framework."
s.author = "Alvaro Gil"
Expand Down

0 comments on commit 8253ffa

Please sign in to comment.