- Download the RubyInstaller for Windows.
- Install Ruby version 3.2.x (32-bit).
- Run the installer and proceed with the default options.
- Ensure the “Run ‘ridk install’” checkbox is selected during installation.
- When prompted by the MSYS2 installer:
- Enter 1 and press Enter when asked the first time.
- Press Enter when asked again.
- Open Command Prompt and run:
gem install rails bundler --no-document
- Verify the installation by checking the Rails version:
rails --version
sudo apt-get update
sudo apt install ruby-full -y
gem install rails -v 7.2.0brew install ruby
gem install rails -v 7.2.0- Create a new Rails application:
rails new myapp
- Navigate into the app directory:
cd myapp - Start the Rails server:
rails server
- Open your browser and visit: http://localhost:3000
- You should see the Rails logo confirming a successful installation.