The following command will make it the default for the user: This guide discussed how to update Ruby on OS X Maverick.It showed how to install Homebrew, rbenv/ruby-build and how to use rbenv to install and then default to a new version of Ruby.Many people on OS X use Homebrew as a package manager.I wanted to use Rails Installer for this because it's seamless, but they don't have an updated install package for the newest version of Ruby and Mac OS X, so I used RVM instead.However, you should upgrade to mac OS 10.12 Sierra if you can. Mac OS Sierra includes Ruby 2.0.0p645 which is not the newest version.
The final step is to set this version of Ruby to be the default version of Ruby to use.
To use Rails on mac OS, you’ll need Ruby (an interpreter for the Ruby programming language) plus gems (software libraries) containing the Rails web application development framework. , the book , and recommendations for a Rails tutorial. Hundreds of developers use the apps, report problems as they arise, and propose solutions.
Rails changes frequently; each application is known to work and serves as your personal "reference implementation." Support for the project comes from people who purchase the Capstone Rails Tutorials.
While the full list of pros and cons is outside of the scope of this page, the most basic reason is that most package managers have older versions of Ruby in their official repositories.
If you would like to use the newest Ruby, make sure you use the correct package name, or use the tools described further below instead.
If you don't already have a Github account, make sure to register. You'll probably want something more robust like My SQL or Postgre SQL.