Steps 1
Install homebrew, install the package required for the system through it
Ruby-e "$ (curl-fssl https://raw.github.com/mxcl/homebrew/go/install)"
After the installation is complete, brew doctor self-Test
Steps 2
Installing Curl-l Https://get.rvm.io | Bash-s Stable
SOURCE ~/.RVM/SCRIPTS/RVM
$ rvm-v
RVM 1.26.4 (Master) by Wayne E. Seguin <[email Protected]>, Michal Papis <[email protected]> [https://rvm.io/]
Steps 3
Installing the ruby environment with RVM
$ RVM Install 2.1.3
$ sed-i. Bak ' s!cache.ruby-lang.org/pub/ruby!ruby.taobao.org/mirrors/ruby! ' ~/.rvm/config/db
Ruby Gemgem sources-l$ Gem source-r https://rubygems.org/
$ gem source-a https://ruby.taobao.org
installation Rails Environment
$ gem Install rails--version 4.0.4--no-ri--no-rdoc-v
$ rails-v
based on project Settings Ruby version and the standalone Gem Environment
In the project root directory, create two files, in the. ruby-version file, you can specify the version of Ruby, in. Ruby-gemset, specify rails and the corresponding gem.
H My Zsh
With the use of the necessary, it is recommended to use. Installation Guide
Macvim
Brew Install ctags Macvim--env-std--override-system-vim
Vim Configuration
http://ruby.taobao.org
http://huacnlee.com/blog/how-to-start-learning-ruby-on-rails/
Installing the ruby Rails environment