Ruby on Rails Rails 5 How to install Ruby on Rails 5 on RVM

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

RVM is a great tool to manage your ruby versions and set up your working environment.

Assuming you already have RVM installed, to get the latest version of ruby, which is needed for these examples, open a terminal and run:

$ rvm get stable
$ rvm install ruby --latest

Check your ruby version by running:

$ ruby -v
> ruby 2.3.0p0

To install Rails 5, first create a new gemset using the latest ruby version and then install rails:

$ rvm use ruby-2.3.0@my_app --create
$ gem install rails

To check your rails version, run:

$ rails -v
> Rails 5.0.0


Got any Ruby on Rails Question?