How to Install Ruby on Rails (ROR) in Ubuntu

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.

Now we will install rails with command

sudo gem install rails --include-dependencies

Thats it You have successfully installed Ruby on Rails.

To create new project type

rails name_of_app

How to uninstall Ruby on Rails (ROR) in Ubuntu

To uninstall all first remove rails gem

sudo gem uninstall rails

and then uninstall rubygems and ruby

sudo apt-get remove rubygems ruby irb ri rdoc ruby1.8-dev

Sponsored Link

You may also like...

2 Responses

  1. Gael says:

    Thank you !

  2. Andi McBurnie says:

    Thanks, worked perfectly.

Leave a Reply

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