December 25, 2024, Wednesday, 359

Upgrade to Rails 2 on Leopard

From NeoWiki

Jump to: navigation, search

For the final release of Rails 2(the --source directive is optional):

$ sudo gem update rails -y --source http://gems.rubyonrails.org
$ sudo gem cleanup  # clean up old versions

Below is for the beta & RC versions(version number should be match the real code number in the source repository):

$ sudo gem install rails --source http://gems.rubyonrails.org --version 1.99.0
Password:
Bulk updating Gem source index for: http://gems.rubyonrails.org
Install required dependency activesupport? [Yn]  Y
Install required dependency activerecord? [Yn]  Y
Install required dependency actionpack? [Yn]  Y
Install required dependency actionmailer? [Yn]  Y
Install required dependency activeresource? [Yn]  Y
Successfully installed rails-1.99.0
Successfully installed activesupport-1.99.0
Successfully installed activerecord-1.99.0
Successfully installed actionpack-1.99.0
Successfully installed actionmailer-1.99.0
Successfully installed activeresource-1.99.0
Installing ri documentation for activesupport-1.99.0...
Installing ri documentation for activerecord-1.99.0...
Installing ri documentation for actionpack-1.99.0...
Installing ri documentation for actionmailer-1.99.0...
Installing ri documentation for activeresource-1.99.0...
Installing RDoc documentation for activesupport-1.99.0...
Installing RDoc documentation for activerecord-1.99.0...
Installing RDoc documentation for actionpack-1.99.0...
Installing RDoc documentation for actionmailer-1.99.0...
Installing RDoc documentation for activeresource-1.99.0...
$ fastri-server -b
Building index.
Indexed:
* 7710 methods
* 1364 classes/modules
Needed 1.628137 seconds