install ruby on rails in ubuntu code example
Example 1: how to install ruby on ubuntu
sudo apt update && sudo apt install -y ruby-full && ruby --version
Example 2: install ruby on ubuntu
sudo snap install ruby --classic
sudo apt update && sudo apt install -y ruby-full && ruby --version
sudo snap install ruby --classic