I’m planning to contribute to an OpenSource Rails App ( https://dubscale.com/ ) and also working towards an MVP idea (Draft). So I thought why not try to setup Rails on my computer and learn the basics. This is how I set it up on my Win 11 PC using WSL for the first time ever. And also how that made me feel.

Alright let’s get this going Choo- Choo

Alright let’s get this going Choo- Choo

To start a new Rails project I used Ubuntu ( on WSL ) and followed below steps.

Setting Up a New Rails Project on Ubuntu (WSL)

To start a new Rails project, I followed these steps on Ubuntu running in Windows Subsystem for Linux (WSL).

A. Installing rbenv

As recommended by Rahul (owner of Dubscale), I used rbenv to manage Ruby versions.

  1. Clone rbenv into ~/.rbenv:

    git clone <https://github.com/rbenv/rbenv.git> ~/.rbenv
    
  2. Set up the shell to load rbenv:

    ~/.rbenv/bin/rbenv init
    

B. Installing Ruby 3.3.0

rbenv install 3.3.0
rbenv global 3.3.0

C. Setting Up Rails

gem install bundler
gem install rails

D. Creating a New Rails Application

I'm working on both a new app and an open-source project, so I created a new app called horseapp with:

rails new horseapp

(Yes, naming isn’t my strong suit.)