Installing Ruby and Rails on Windows

# First step, download ruby from http://rubyinstaller.org/. Once downloaded click the installer to install Ruby into your desired folder (C:\Ruby). Make sure to add Ruby to your path.

# Once installed, check the version of Ruby installed by typing in

c:\> ruby –version
ruby 1.9.3p194 (2012-04-20) [i386-mingw32]

c:\> gem update –system

c:\> gem sources -a http://gemcutter.com

To install Rails

c:\> gem install rails

# You may have issues with the installation which may require build tools to be installed as well. Download Development Kit from http://rubyinstaller.org/downloads/ and unzip it to a folder.

c:\DevKit> ruby dk.rb init

c:\DevKit> ruby dk.rb install

c:\Devkit> devkitvars.bat

# Rails

Check the version of Rails installed

c:\> rails -v
Rails 3.2.8

Create a seaprate folder “Railsproject” for our sample application

c:\Railsproject> rails new sample

Now within Railsproject folder another folder “sample” will be created. Open the built-in webserver which Rails ships with by going inside “sample” folder and typing in

c:\Railsproject\sample&gt rails server

Now go to a web browser and type in http://localhost:3000 to open the application

Share it onShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Written by kurinchilamp


Website: http://

Leave a Reply

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

Read previous post:
How to check Python version number in Linux/Unix environment?

To check the Python version number in Linux, simply type $ python -V You will get an output Python 2.4.3

Close