RubyOnRails

Revision 8 as of 2006-05-10 08:15:13

Clear message

RubyOnRails

Rails is a full-stack web development framework implemented in Ruby for developing database-backed web applications according to the Model-View-Control pattern of separation.

Getting started. What is needed:

* Ruby - Ruby 1.8.2 is recommended for use with Rails despite the presence of 1.8.3. The latter has had a number of issues that would encourage people to stay on the former and await Ruby 1.8.4

* RubyGems - RubyGems is the standard Ruby package manager. Similar to apt-get, but is used for installing Ruby libraries and applications. Gems are sorta like .debs (Preffered way of installing Rails and it's dependencies)

* Rails - With RubyGems loaded, you can install all of Rails and its dependencies.

Installation

Note: Ensure that you have the Universe repository enabled in your /etc/sources.list. See https://wiki.ubuntu.com/AddingRepositoriesHowto

1) Install Ruby

{{{sudo aptitude install ruby rdoc irb libyaml-ruby libzlib-ruby }}}

2) Install RubyGems

{{{wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz tar xzvf rubygems-0.8.11.tgz cd rubygems-0.8.11 sudo ruby setup.rb sudo gem update --system }}}

3) Install Rails and it's dependencies (with RubyGems)

{{{sudo gem install rails -y }}}

As your working user: {{{$ rails /complete/path/to/new/railsapp }}}

Packages are also available in the Universe repository for Rails.

http://packages.ubuntu.com/cgi-bin/search_packages.pl?searchon=names&version=all&exact=1&keywords=rails