How to Install Rails on Windows 11 Step by Step

Are you a Windows 11 user and eager to start building web applications with Ruby on Rails? You’re in the right place! In this comprehensive guide, we will walk you through the process of installing Rails on your Windows 11 operating system. Whether you’re a beginner or an experienced developer, these step-by-step instructions will help you set up Rails and unleash your web development potential.

Install Ruby

Before diving into Rails, we need to install Ruby, the programming language that powers Rails. Follow these steps to get Ruby up and running on your Windows 11 machine:

  • Visit the RubyInstaller website at in your web browser.
  • On the website, click on the “Ruby+” link to download the Ruby+Devkit installer.
  • Choose the version of Ruby you want to install (preferably the latest stable version) and click the corresponding download link.
  • Once the download is complete, run the installer executable file.
  • On the first page of the installer, check the box that says “Add Ruby executables to your PATH.”
  • Choose the installation destination for Ruby (the default location is recommended).
  • Select the components you want to install (Ruby and MSYS2 are required; other components are optional).
  • Click the “Install” button to begin the installation process.
  • After the installation is complete, uncheck the box that says “Run ‘ridk install’ to install MSYS2 and development toolchain.”
  • Click the “Finish” button to exit the installer.

Install Rails

Now that Ruby is successfully installed, we can proceed to install Rails using the following steps:

  • Open the command prompt by pressing the Windows key + R, typing “cmd,” and pressing Enter.
  • In the command prompt, type the following command to check if Ruby is installed properly
  • Run this command (ruby -v)to check if Ruby Installation.
You should see the installed Ruby version displayed. If not, make sure Ruby is added to your system’s PATH variable.

Set Up a Rails Project

To start developing with Rails, we’ll create a new Rails project using the following steps:

  • In the command prompt, type the following command to install Rails gem install rails  
  • Press Enter to execute the command. This will fetch the latest version of Rails and its dependencies from the RubyGems repository.
  • Wait for the installation to complete. It may take a few minutes.
  • In the command prompt, type the following command to check if Rails is installed properly rails -v
  • You should see the installed Rails version displayed.

Launch the Rails Server

Congratulations! You have successfully installed Ruby on Rails on your Windows 11 machine and created your first Rails project. Now you can explore the vast world of web development using Rails. Remember to regularly update Ruby and Rails to benefit from the latest features and security patches.

Now that your Rails project is set up, let’s start the Rails server to see your application in action.

Related Topics

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top