Installation and Setup

Most straight forward Ruby on Rails installation and set up guide is linked below -

Install Ruby On Rails on Ubuntu 26.04 Resolute Raccoon | GoRails

Additionally, I have compiled a detailed step by step guide to setup a Rails development environment below-

  1. Install Dependencies

Update your system and install required packages:

sudo apt update
sudo apt install -y git curl build-essential libssl-dev libyaml-dev libreadline6-dev zlib1g-dev libncurses5-dev libffi-dev libgdbm-dev libgdbm-compat-dev libdb-dev


2. Install mise

Run the following to install mise:

curl <https://mise.jdx.dev/install.sh> | sh

Add mise to your shell (Bash/Zsh):

echo "eval \\"\\$(/home/debu/.local/bin/mise activate bash)\\"" >> ~/.bashrc
source ~/.bashrc

Verify:

mise --version


3. Install Ruby Versions