Ruby on Rails

From ArchWiki
Revision as of 05:40, 13 May 2009 by Ekse (talk | contribs) (Created page with 'Category:Networking (English) Category:HOWTOs (English) == Introduction == This document describes how to set up the Ruby on Rails Framework on an Arch Linux system. ==...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Introduction

This document describes how to set up the Ruby on Rails Framework on an Arch Linux system.

Installation via rubygems

Since rails is not currently in the repositories, using rubygems is the easiest method to install Ruby on Rails. First, install the rubygems package :

# pacman -S ruby rubygems

Next install rails via gem (root required). All the dependencies for Ruby on Rails will be downloaded.

# gem install rails

Template:Box Note

# gem install rails --no-rdoc  

Installation via AUR

TODO

Configuration

Rails is bundled with a basic HTTP server called WeBrick. You can create a test application to test it. First, create an application with the rails command :

# rails testapp_name

Next start the web server. It listens on port 3000 by default :

# cd testapp_name
# ruby script/server 

Finally open your server address on port 3000 in your web browser. For example, if the server is on the local host :

open http://127.0.0.1:3000/ in web browser

You should see a test page titled "Welcome aboard".

Mongrel

TODO

More Resources