First, execute:
C: \ Ruby> gem install railserror: While executing gem... (GEM: remotesourceexception) HTTP Response 302
Failed to install rails because the gem version is too low. My current version is:
C: \ Ruby> gem-v0.9.4
Now, you need to upgrade it first. You can download it from this connection address:
Rubygems-update-1.3.7.gem, http://rubyforge.org/frs/download.php/70695/rubygems-update-1.3.7.gem
You can also download: http://jifeng3518.download.csdn.net/from my csdn/
Then run CD under cmd to the directory where the rubygems-update-1.3.7.gem is located:
C: \ Ruby> gem install -- local rubygems-update-1.3.1.gemSuccessfully installed rubygems-Update, Version 1.3.1
The update is not completed yet. The next step is crucial.
C: \ Ruby>Update_rubygemsInstalling rubygems 1.3.1mkdir-p c:/Ruby/lib/Ruby/site_ruby/1.8 mkdir-p c:/Ruby/bin ......
Then, execute:
C: \ Ruby> gem-v1.3.1c: \ Ruby> gem update -- systemupdating rubygemsupdating rubygems-update ............
Install rails
C: \ Ruby> gem install rails -- include-dependenciesinfo: 'gem install-y' is now default and will be removedinfo: use -- ignore-dependencies to install only the gems you list ......