Starter Notes
Updated Aug 24, 2023 ·
Install Ruby on Rails
-
Install Ruby:
-
For Windows, see the official Install Ruby on Rails Guide.
## Run on WSL
sudo apt update
sudo apt install -y build-essential rustc libssl-dev libyaml-dev zlib1g-dev libgmp-dev
curl https://mise.run | sh
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc
source ~/.bashrc
mise use -g ruby@3 -
For macOS, use Homebrew:
brew install ruby -
For Linux, use your package manager, e.g., for Ubuntu:
sudo apt-get install ruby-full
-
-
Verify Ruby install:
-
Verify it works by running:
ruby --versionSample output:
ruby 2.5.0
-
-
Install Rails:
-
Use Ruby's gem command to install Rails and its dependencies from RubyGems.org.
gem install rails -
To verify that Rails is installed correctly
rails --versionSample output:
Rails 6.1.7.4
-