Skip to content

Instantly share code, notes, and snippets.

@asimjalis
Created December 8, 2012 01:16
Show Gist options
  • Save asimjalis/4238014 to your computer and use it in GitHub Desktop.
Save asimjalis/4238014 to your computer and use it in GitHub Desktop.
How to install Ruby on Rails on Windows PC

How to install Ruby on Rails on Windows PC

by Asim Jalis, MetaProse.com

Here are the steps for installing Ruby on Rails on a Windows PC and verifying that the install was successful.

  1. Go to http://www.railsinstaller.org.

  2. Click on “Download the Kit”.

  3. Download and run the installer.

  4. To verify the install open a cmd console window and type the following:

     mkdir c:\RailsTest
     cd c:\Rails
     rails new demo
     cd demo
     rails server
    
  5. Wait until the output mentions port=3000. The output should look like this:

     C:\RailsTest\demo>rails server
     => Booting WEBrick
     => Rails 3.2.1 application starting in development on http://0.0.0.0:3000
     => Call with -d to detach
     => Ctrl-C to shutdown server
     [2012-12-07 11:42:40] INFO  WEBrick 1.3.1
     [2012-12-07 11:42:40] INFO  ruby 1.9.3 (2012-02-16) [i386-mingw32]
     [2012-12-07 11:42:40] INFO  WEBrick::HTTPServer#start: pid=6616 port=3000
    
  6. Open the browser to http://localhost:3000 and check that it contains this message:

     Welcome aboard
     You’re riding Ruby on Rails!
    
  7. Congratulations! Your install was successful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment