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

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




I am a Full stack Web Developer. I'm interested in Web Designing and passionate towards FOSS. I love Linux and like to promote it. A quick leaner, quick implementer, not away from errors, staying for software and knowledge freedom and doing programming in PHP, Mysql, Postgresql, Laravel, Angulajs and more..

1 Comment

  1. Absolutely what I am looking for? I am searching many site for this installation information. At last I got this site through Google.

Leave a Reply

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