All blogs

Update Ruby version using Rbenv

28 Jan 2020, 09:50 AM

Follow the below steps to update Ruby version. When upgrading Ruby, always check the latest version available on the official website.


Update ruby-build

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.
Testing_01
Install Ruby by specifying a version number

(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.

Petal Academy brings you courses for Science, English and Maths!!

408, K P Platina
Opposite Pizza Hut
Race Course Road
Vadodara, Gujarat, India - 392001