I wanted to use Ruby on Rails with good tooling on my Windows computer, which made WSL2 the obvious choice. I thought I'd just fire up an Ubuntu VM and off I go. I came across some issues though. There are many tools missing when you just start up.
Here I'll step you through how to get RoR working in WSL2. This guide presumes you already have WSL2 set up on your computer. I'll be starting with a fresh Ubuntu distro.
I've created a gist if you just want to run the script and get up-and-running.
And what's the coolest part of this? You can type code . in the folder you want to develop, and VSCode will fire up on your Windows computer and automatically connect to the Windows subsystem! How cool is that?