1.安装ruby
brew install ruby
1.1 另一种安装ruby的办法
Mac下Ruby版本管理工具RVM的配置和安装
http://www.jianshu.com/p/bea091f8448d?_t_t_t=0.4159752886240491
$ curl -L get.rvm.io | bash -s stable
- 安装rails
gem中国镜像
http://gems.ruby-china.org/
sudo gem install rails
Ruby on rails Mac开发 入门笔记(一)
http://www.cnblogs.com/limlee/archive/2012/11/25/rubyonrailsnote_i.html
gem update rails
该命令将自动监测并收集所有相关的bundle
bundle update
创建
rails new helloworld
启动
rails s