|
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:
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 .. |