Setup Ruby on Rails with Windows

How to Setup Ruby on Rails with Windows?

Requirements: Windows OS (10/8/7), Ruby Installer v2.3 or upper

At first, we need to install Ruby on our system.

  • Go to Ruby official site then download the latest version of Ruby, then install it on your specific location.
    #=> After installing ruby check the version
    $ ruby -v
    ruby 2.3.1p112 # Or somthing like this
  • Then download Development Kit from the same link as above.
  • Create a folder which called devkit inside the Ruby folder
  • Extract downloaded devkit inside the devkit folder
  • Run command inside the devkit folder
    $ ruby dk.rb init
    $ ruby dk.rb install
  • Run command inside the ruby folder “gem install rails”
    $ gem install rails 
    #=> After installing rails check version
    $ rails -v
    Rails 5.0.6
  • Create rails project
    $ rails new project
    #=> After created project then below command
    $ cd project
    $ bundle install
    #=> Configure database
    $ bundle exec rake db:create
    $ bundle exec rake db:migrate
    $ rails server
    => Booting Puma
    => Rails 5.0.6 application starting in development on http://localhost:3000
    => Run `rails server -h` for more startup options
    *** SIGUSR2 not implemented, signal based restart unavailable!
    *** SIGUSR1 not implemented, signal based restart unavailable!
    *** SIGHUP not implemented, signal based logs reopening unavailable!
    Puma starting in single mode...
    * Version 3.10.0 (ruby 2.3.1-p112), codename: Russell's Teapot
    * Min threads: 5, max threads: 5
    * Environment: development
    * Listening on tcp://
    Use Ctrl-C to stop


  • Open the browser. Write “localhost:3000” on address bar and press Enter key.


That’s all! Enjoy development/programming with Ruby on Rails 🙂