I need to add an updated version of Ruby so I could use Ruby on Rails 6. I found an easy way to do this using Chocolatey. Chocolatey offers a free version for personal use.
I’ve used Railinstaller in the past to help, but it seemed that their stacks were a little outdated when I looked (and they didn’t have anything beyond Ruby 2.3).
That’s OK because using Chocolatey was super simple.
- Install Chocolatey
- Open Powershell as a Admin
- You should now be able to run ‘choco install ruby’ or ‘choco upgrade ruby’ depending on what you want to do (Ruby chocolatey page)
Since I’m running URU, I just needed to add the bin path to it, and now I can switch between Ruby versions easily.