更換國內source(截至到2016-10-8可用)
gem sources –remove https://rubygems.org/
gem sources -a http://gems.ruby-china.org/
gem sources -l
安裝rails
gem install rails
新建rails程序
rails new demo
運行rails程序
rails server
gem sources –remove https://rubygems.org/
gem sources -a http://gems.ruby-china.org/
gem sources -l
gem install rails
rails new demo
rails server