Ubuntu Geek

Ubuntu Linux Tips,Howtos&Tutorials|Edgy,Feisty,Gutsy,Hardy

  • Subscribe RSS Feed

    subscribe to the ubuntu Geek RSS feed




  • Sponsor

  • Categories

  • Meta

  • Sponsor

  • Archives



  • WidgetBucks - Trend Watch - WidgetBucks.com

How to Install Ruby on Rails (ROR) in Ubuntu

Posted by admin on October 24th, 2007 Email This Post Email This Post

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

If you want to be notified the next time we write something please subscribe to our RSS feed.Thanks for Visiting!

Related Articles

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>