Rails installation on Windows

To develop a web application using Ruby on Rails Framework, install the following software: * Ruby * The Rails framework * A Web Server * A Database System 1. Check to know whether Ruby is already installed, using version option under the command prompt:
C:\>ruby -v
then:
C:\>gem --version
2. If Ruby is not installed, then go to rubyforge.org to get information about the available versions. Then go to rubyinstaller.rubyforge.org and download an installation package. Here, the version downloaded is: ruby186-25.exe. This .exe file will be installed automatically. We have the following structure:

(without demo directory that will come after at the coming step #4 ).

3. The package comes with RubyGems. All its dependencies, once online, can be installed 
through the following command line:
C:\> gem install rails --include-dependencies
To update the Rails installation, once online, issue the following command:
C:\> gem update rails
4. Create a demo project. Issue the following command line:
C:\> rails demo
That set the demo directory. 5.Run WEBrick web server on the machine: In the demo directory, issue the command line:
C:\ruby\demo> ruby script/server
That gives the following information showing that the server is then running:


 
Set a browser with url: http://localhost:3000; to get 
the following "Welcome aboard":

.
 
If by clicking on "About your application's environment", we do 
not get the correct properties for the Database adapter (that 
comes with gem install); we need then to install sqlite3-ruby. 
Go to www.sqlite.org 
and download: sqlitedll-3_5_7.zip (207.88 KiB).
Unzip this file anywhere to extract the file  sqlite3.dll. 
Copy it to C:\ruby\bin> directory.

Now, we are ready to work on ruby on rails ..