November 25, 2024, Monday, 329

Upgrade to Rails 2 on Leopard

From NeoWiki

(Difference between revisions)
Jump to: navigation, search
m
 
(2 intermediate revisions by one user not shown)
Line 1: Line 1:
For the final release of Rails 2:
+
For the final release of Rails 2(the --source directive is optional):
 
  $ sudo gem update rails -y --source <nowiki>http://gems.rubyonrails.org</nowiki>
 
  $ sudo gem update rails -y --source <nowiki>http://gems.rubyonrails.org</nowiki>
 +
$ sudo gem cleanup  # clean up old versions
  
Below is for the beta & RC 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 <nowiki>http://gems.rubyonrails.org</nowiki> --version 1.99.0
 
  $ sudo gem install rails --source <nowiki>http://gems.rubyonrails.org</nowiki> --version 1.99.0
 
  Password:
 
  Password:

Latest revision as of 08:16, 20 December 2007

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