In this short tutorial i’m using ubuntu 22.04lts on WSL2
Pre-reqs
You need the asdf-vm and the dev packages installed.
Getting Started
Install the ruby plugin
Install the version
Set the global version
Install the bundler and rails
To set up your rails development env you can see this post
Obs:
If you have some problem in install the ruby version using asdf make sure the following packages are installed: libyaml-dev libtool zlib1g zlib1g-dev libffi