added isntallation notes for Rails 3 - reportable - Unnamed repository; edit this file 'description' to name the repository. (DIR) Log (DIR) Files (DIR) Refs (DIR) README --- (DIR) commit d9af94a2252454b9881676a910c26f3c093282d1 (DIR) parent e5c3ffa50f586ab54e8ebc46fd74351bcc2716a8 (HTM) Author: Marco Otte-Witte <marco.otte-witte@simplabs.com> Date: Mon, 19 Apr 2010 14:29:24 +0200 added isntallation notes for Rails 3 Diffstat: M README.md | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) --- (DIR) diff --git a/README.md b/README.md @@ -54,19 +54,35 @@ Reportable provides a helper method to generate a sparkline image from this data Installation ------------ -To install Reportable, simply run +To install the Reportable gem, simply run [sudo] gem install reportable -and add it to your application's dependencies in your `environment.rb`: +### Rails 2.x + +To install Reportable for Rails 2.x, add it to your application's dependencies in your `environment.rb`: config.gem 'reportable', :lib => 'saulabs/reportable' -When you installed the gem, you have to generate the migration that creates Reportable's cache table: +and generate the migration that creates Reportable's cache table: ./script/generate reportable_migration create_reportable_cache -and migrate: +Run the generated migration as the last step: + + rake db:migrate + +### Rails 3.0 + +To install Reportable for Rails 3.0, add it to your application's Gemfile: + + gem 'reportable', :require => 'saulabs/reportable' + +and generate the migration that creates Reportable's cache table: + + ./script/generate reportable_migration + +Run the generated migration as the last step: rake db:migrate