How to Install Ruby on Rails (ROR) in Ubuntu Linux




Ruby on Rails
Ruby on Rails

Rails is a full-stack framework for developing  web applications according to the Model-View-Control pattern. It is working upon the language ruby, which is very easy to learn. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a web server like WEBrick or Mongrel

Installation in Ubuntu

The installation is very simple. We have a package called RubyGems.

Simply open a terminal then type

sudo apt-get install ruby irb ri rdoc ruby1.8-dev2.2

for ruby gems

sudo apt-get install rubygems

Now we will install rails with command

sudo gem install rails --include-dependencies

That is all You Have Ruby on Rails

Create a Project in Rails

it is also very simple


rails myproject

it will create the rails sytem.

then start the server (Webrick or Mongrel) . For that type

ruby script/server

=> Booting Mongrel
=> Rails 2.3.2 application starting on
=> Call with -d to detach
=> Ctrl-C to shutdown server

Then open your browser (firefox) and type

Then get a rails welcome page.

This is your first rails app.

Start Developing ..




One comment

Leave a Reply