Step 1: Set Up Environment
Prerequisites
- macOS 10.15+, Ubuntu 22.04+, or Windows with WSL Ubuntu 24.04.
Install on macOS/Linux/Windows (use Mise version manager)
- Install dependencies (macOS example):
xcode-select --install # macOS
brew install openssl@3 libyaml gmp rust # macOS
Linux: sudo apt install build-essential rustc libssl-dev libyaml-dev zlib1g-dev libgmp-dev git
- Install Mise:
curl https://mise.run | sh
echo 'eval "$(~/.local/bin/mise activate)"' >> ~/.zshrc # or ~/.bashrc
source ~/.zshrc
- Install Ruby 3.3+:
- Install Rails:
gem install rails
rails --version # => Rails 8.1+
- Create app:
rails new blog
cd blog
bin/rails db:create db:migrate
bin/rails server
Visit http://localhost:3000.