Sponsored Link

Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. 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.

Install Ruby on Rails (ROR) on Ubuntu

First we need to install Ruby and irb (Interactive ruby shell) and we'll add ri and rdoc. The recommended Ruby version for rails is 1.8.5.

Open your terminal and type

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

Then we need to install RubyGems. We are going to install RubyGems with the following command

sudo apt-get install rubygems

Then we'll update RubyGems with the following command

sudo gem update --systemNow

we have the correct version, and best of all when we want to uninstall it we can just do it with synaptic.