Tuesday, August 18, 2009

Installing Ruby on rails in four easy steps

Ruby on rail is used for web application development.
Ruby is object oriented language.
Rail is framework that uses Ruby language to develop robust and scalable web application.
Ruby on rail installation is simple, newbie however find it a bit tricky first.
Here in this article I am going to tell you how can Ruby on rails be installed in windows XP.

1. Download latest version of Ruby from http://rubyforge.org/projects/rubyinstaller/
2. after the installation double click the exe file. this will start setup wizard which will guide you to the end.
3. once Ruby is installed next step is to set path
=>start => control panel => system =>advance => environment versiables
click path and press edit.
add
;C:\Ruby\bin


at the end of the path, I assumed that you have installed Ruby in drive c.
press oK.
4. now in command prompt

write

gem update --system


when the process completed, write

gem install rails


you have done. now its time to create your first project

in command prompt, write
rails firstproject


Once the projec is create, in command prompt, write

cd firstproject
ruby script/server


now browse

http://localhost:3000/

you will see ruby on rails welcome page.

5 comments:

  1. You know both ruby and zend. Which one you recommend ? I am trying to study zend framework. But their "quick start" looks "difficult start", You need to make 3 classes per table for database connectivity. On following tutorial on zend site, i don't understand the database part.

    ReplyDelete
  2. As I have been working in zend for the last one and half year, so I will definitely recommend Zend Framework, however RoR has its own taste.

    ReplyDelete
  3. hank you.Well it was nice post and very helpful information onRuby on Rails Online Course India

    ReplyDelete
  4. Nice article I was really impressed by seeing this blog, it was very interesting and it is very useful for me.Informative blog! it was very useful for me.Thanks for sharing.
    property dealers in Islamabad

    ReplyDelete
  5. Good Informations Thanks For Shared
    Sheranwala Group is the developer of Victoria City Lahore is viewed as one f the best land developers of Pakistan and as of now has conveyed a lot of housing projects in the area. Time square shopping center and Residencia in Bahia Orchard stage 4 are one of the many projects they have conveyed with flawlessness which adds to the worth of this housing project.

    ReplyDelete