Installing Rails On Windows Quickstart Guide

Installing Rails from Scratch: From Zero to Hello World in 3 Minutes

I’m installing Rails from scratch on Windows. Here’s how I went from zero to “hello, world!” in less than 3 minutes.

1. Run the RailsInstaller to Install the Foundation

The nice folks at[] have a wonderful Windows binary that will get you setup and running with literally everything you need to get up and running very quickly.

Run the installer, then open up your favorite terminal emulator. In my case, I’m using VS Code’s terminal emulator, which you can access by hitting ctrl+\`.

Once the installer is finished, check that everything installed correctly.

Verify ruby installed by typing ruby -v:

C:\RubyTutorial>ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32]


Next, verify sqlite3 installed by typing sqlite3 --version:

C:\RubyTutorial>sqlite3 --version 2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93

Great! Now let’s install Rails itself:

C:\RubyTutorial>gem install rails
Fetching: activesupport-5.1.3.gem (100%)
Successfully installed activesupport-5.1.3
Fetching: erubi-1.6.1.gem (100%)
Successfully installed erubi-1.6.1
Fetching: actionview-5.1.3.gem (100%)
Successfully installed actionview-5.1.3
Fetching: actionpack-5.1.3.gem (100%)
Successfully installed actionpack-5.1.3
Fetching: activemodel-5.1.3.gem (100%)
Successfully installed activemodel-5.1.3
Fetching: arel-8.0.0.gem (100%)
Successfully installed arel-8.0.0
Fetching: activerecord-5.1.3.gem (100%)
Successfully installed activerecord-5.1.3
Fetching: activejob-5.1.3.gem (100%)
Successfully installed activejob-5.1.3
Fetching: actionmailer-5.1.3.gem (100%)
Successfully installed actionmailer-5.1.3
Fetching: nio4r-2.1.0.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed nio4r-2.1.0
Fetching: actioncable-5.1.3.gem (100%)
Successfully installed actioncable-5.1.3
Fetching: railties-5.1.3.gem (100%)
Successfully installed railties-5.1.3
Fetching: rails-5.1.3.gem (100%)
Successfully installed rails-5.1.3
Parsing documentation for activesupport-5.1.3
Installing ri documentation for activesupport-5.1.3
Parsing documentation for erubi-1.6.1
Installing ri documentation for erubi-1.6.1
Parsing documentation for actionview-5.1.3
Installing ri documentation for actionview-5.1.3
Parsing documentation for actionpack-5.1.3
Installing ri documentation for actionpack-5.1.3
Parsing documentation for activemodel-5.1.3
Installing ri documentation for activemodel-5.1.3
Parsing documentation for arel-8.0.0
Installing ri documentation for arel-8.0.0
Parsing documentation for activerecord-5.1.3
Installing ri documentation for activerecord-5.1.3
Parsing documentation for activejob-5.1.3
Installing ri documentation for activejob-5.1.3
Parsing documentation for actionmailer-5.1.3
Installing ri documentation for actionmailer-5.1.3
Parsing documentation for nio4r-2.1.0
Installing ri documentation for nio4r-2.1.0
Parsing documentation for actioncable-5.1.3
Installing ri documentation for actioncable-5.1.3
Parsing documentation for railties-5.1.3
Installing ri documentation for railties-5.1.3
Parsing documentation for rails-5.1.3
Installing ri documentation for rails-5.1.3
Done installing documentation for activesupport, erubi, actionview, actionpack, activemodel, arel, activerecord, activejob, actionmailer, nio4r, actioncable, railties, rails after 49 seconds
13 gems installed


Neat! Let’s verify that Rails was installed correctly by checking the version:

C:\RubyTutorial>rails -v
Rails 5.1.3


And we’re in business.

Congratulations! You have installed everything you need to get up and running with Ruby on Rails.