Skip to content

Commit

Permalink
Changed README on installation
Browse files Browse the repository at this point in the history
  • Loading branch information
stefankroes committed Oct 26, 2010
1 parent bb6d920 commit e25435e
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.rdoc
Expand Up @@ -6,14 +6,13 @@ Ancestry is a gem/plugin that allows the records of a Ruby on Rails ActiveRecord

To apply Ancestry to any ActiveRecord model, follow these simple steps:

1. Install gem
- Install gemcutter gem: <b>sudo gem install gemcutter</b> (maybe you need: gem update --system)
- Add gemcutter.org as default gem source: <b>gem tumble</b>
- Add to config/environment.rb: <b>config.gem 'ancestry'</b>
- Install required gems: <b>sudo rake gems:install</b>
- Alternatively: sudo gem install ancestry
- If you don't want gemcutter: config.gem 'ancestry', :source => 'gemcutter.org'
- Alternatively: sudo gem install ancestry --source gemcutter.org
1. Install
- <b>Rails 2</b>
- Add to config/environment.rb: <b>config.gem 'ancestry'</b>
- Install required gems: <b>sudo rake gems:install</b>
- <b>Rails 3</b>
- Add to Gemfile: <b>gem 'ancestry'</b>
- Install required gems: <b>bundle install</b>

2. Add ancestry column to your table
- Create migration: <b>./script/generate migration add_ancestry_to_[table] ancestry:string</b>
Expand Down

0 comments on commit e25435e

Please sign in to comment.