Update Ruby version using Rbenv
Follow the below steps to update Ruby version. When upgrading Ruby, always check the latest version available on the official website.
Pull the latest version of ruby-build since that version would support installing the latest version of Ruby. When new versions of Ruby are released you need to update ruby-build to install those versions.
Install Ruby by specifying version number
Set the new version as global version
(Optional) Install bundler
If you are using Rails, you would want to install the latest version of bundler for the new Ruby version you just installed.
by Harshal Bhaktatags: ruby
comments powered by Disqus