| added isntallation notes for Rails 3 - reportable - Fork of reportable required… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit d9af94a2252454b9881676a910c26f3c093282d1 | |
| parent e5c3ffa50f586ab54e8ebc46fd74351bcc2716a8 | |
| Author: Marco Otte-Witte <[email protected]> | |
| 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(-) | |
| --- | |
| diff --git a/README.md b/README.md | |
| @@ -54,19 +54,35 @@ Reportable provides a helper method to generate a sparkline… | |
| 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… | |
| config.gem 'reportable', :lib => 'saulabs/reportable' | |
| -When you installed the gem, you have to generate the migration that creates Re… | |
| +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 | |