30 September 2019
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.
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).
railsinstaller. I also recommend you skipping this one.
Let’s get started. This one takes a few steps, but I’ve found that it’s been a highly repeatable process on my Windows10 installs.
Get-ExecutionPolicy. If it returns
Restricted, then run
Set-ExecutionPolicy Bypass -Scope Process.
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
PATHis updated, close the PowerShell console window
Run as Administrator
choco install rubyin the console
Administratorlevel AND we want to make sure our system
PATHhas been updated
binfolder - aka.
Enter(we want the defaults)
gem install rails
There are several popular resource guides available for installing Ruby on Rails on Windows10, 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).