1、先安装ruby
2、更新gem 版本,不更新会导致安装失败
>>gem update --system
更新完成后,清除备份的旧版本gem包
>>gem cleanup
3、安装rails
>>gem install rails
安装完成后的gem list
actionmailer (2.3.4)
actionpack (2.3.4)
activerecord (2.3.4)
activeresource (2.3.4)
activesupport (2.3.4)
builder (2.1.2)
camping (1.5.180)
fxri (0.3.7)
fxruby (1.6.12)
hoe (2.3.3)
hoe-seattlerb (1.2.1)
hpricot (0.6)
json_pure (1.1.9)
log4r (1.0.5)
markaby (0.5)
metaid (1.0)
minitest (1.4.2)
rack (1.0.0)
rails (2.3.4)
rake (0.8.7)
rubyforge (2.0.2)
rubygems-update (1.3.5)
session (2.4.0)
sources (0.0.1)
test-spec (0.10.0)
win32-api (1.0.4)
win32-clipboard (0.4.3)
win32-dir (0.3.2)
win32-eventlog (0.4.6)
win32-file (0.5.4)
win32-file-stat (1.2.7)
win32-process (0.5.3)
win32-sapi (0.1.4)
win32-sound (0.4.1)
windows-api (0.2.0)