How to install Ruby on Rails 5 on RVM
suggest changeRVM manages Ruby versions and gemsets. Rails 5.0 needs Ruby 2.2.2 or newer.
Assuming RVM is already installed, install a Ruby 2.3 release for these examples:
rvm get stable
rvm install 2.3.0
Check the Ruby version:
ruby -v
# ruby 2.3.0p0
Create a gemset on that Ruby and install Rails 5. An unpinned gem install rails installs the newest Rails, not Rails 5.
rvm use ruby-2.3.0@my_app --create
gem install rails -v '~> 5.0.0'
Check the Rails version:
rails -v
# Rails 5.0.x
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents