Ruby on Rails
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
# gem install rails --no-rdoc
Installation via AUR
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".