Install Ruby on Rails Guide
# Install Homebrew and dependencies
brew install openssl@3 libyaml gmp rust
# Install Mise version manager
curl https://mise.run | sh
echo 'eval "$(~/.local/bin/mise activate)"' >> ~/.zshrc
source ~/.zshrc
# Install Ruby globally with Mise
mise use -g ruby@3ruby --versionruby 3.4.7 (2025-10-08 revision 7a5688e2a2) +PRISM [arm64-darwin25]Installing Rails
A “gem” in Ruby is a self-contained package of a library or Ruby program. We can use Ruby’s gem command to install the latest version of Rails and its dependencies from RubyGems.org.
gem install railsrails --versionRails 8.1.1Getting Started with Rails
Rails Philosophy
- Convention Over Configuration: Rails has opinions about the best way to do many things in a web application, and defaults to this set of conventions, rather than require that you define them yourself through endless configuration files.