Ruby on Rails is a web development framework that was first introduced in 1999. Despite it’s “age”, it’s still a popular choice for developing web applications.

In this small tutorial, we’re going to go through the steps involved in setting up Rails6 on Windows10.

There are a few Rails installer type of projects available, but I’ve found that these mostly don’t work anymore despite coming up near the top of any search in google. If you’ve come across them already and they work for you, then fantastic!

I’m not throwing shade at any of these projects, by the way, merely trying to communicate to others who might be hunting around for the same information and coming across the same resources (and therefore experiencing the same frustration).

using Chocolatey to install Ruby on Rails on Windows 10

A popular Windows 10 package manager is Chocolatey. It can handle downloading and setting up Ruby for us.

1
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

install Ruby via Chocolatey

using Scoop to install Ruby on Rails on Windows 10

Another recent popular management tool on Windows 10 is Scoop. I’ve been trying it out personally for a while, and I prefer it to Chocolatey.

1
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

install ruby via scoop

Scoop lingo uses the concepts of “apps” and “buckets”. An “app” is a single application or program to install. Whereas a “bucket” is a collection (or loose collection) of apps. To be a bit more accurate, a bucket contains a collection or grouping of app manifests - that is, the info needed by scoop to install a particular app.

install ridk

install rails 6

Conclusion

There are several popular resource guides available for installing Ruby on Rails on Windows 10, but they are either quite outdated, or may not be a good “fit” with your system setup.

To try and help others coming across the same batch of resources and hitting the same speed bumps, I put together this small guide to give you a hand. Hopefully it does the job for you without issue(s).

If you found this tutorial helpful, please share it!