RubyOnRails

Revision 2 as of 2006-01-04 18:38:04

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:

1) 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

2) RubyGems - RubyGems is the standard Ruby package manager. Similar to apt-get, but is used for installing Ruby libraries and applications.

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

Packages are available in the Universe repository for Rails.

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

1) Install RubyGems

http://docs.rubygems.org/read/chapter/3 Attention: ’’apt-get’’ libyaml-ruby and libzlib-ruby before installing RubyGems

2) Install RubyOnRails For this, you will need irb and rdoc as dependencies, then, as root (if you choose the system wide install): # gem install rails --include-dependencies

3) Init Web App As your working user: $ rails /complete/path/to/new/railsapp