Setup Rails
This page describes how to setup Ruby on Rails and related development tools. tools. Edit it to match your tools.
Install the Tools ¶
Install ruby, gem, and rails ¶
Version:
- We are currently using Rails version 2.0.2 with ruby 1.8.6
All Operating Systems
- Ruby on Rails: http://www.rubyonrails.com/down
- Starting with Ruby: http://www.loudthinking.com/arc/000199.html
Windows
- Download and install the Ruby Windows Installer and then type "gem install rails --include-dependencies" in cmd.exe prompt
- Go into your editor preferences and set your line endings to UNIX. This is important. Send me a message if you are not sure how to do this with your editor.
Install Libraries ¶
Any libraries that you need to load with GEM will be listed here. All can be retrieved with "gem install
".
gem install --include-dependencies
Gems from other sources...
For example: If you want to enable image thumbnails, install the Rmagick gem. This relies on the Imagemagick library, and on windows you will need to download the gem, unzip it, and follow the instructions in the README file to install Imagemagick and Rmagick.
Install a database server if you do not already have one ¶
- MySQL 5.X : http://dev.mysql.com/downloads/ and rails instructions .
- Postgres: Link to Postgres download
Install the Rails IDE ¶
Netbeans with ruby support ¶
Download IDE from here
Aptana IDE aka RadRails? ¶
Optional: Read this linked Easy Setup page for instructions about how to set up a development environment with Radrails. This will be useful to you if you are a graphic designer with limited programming experience. It also describes how to check out a project from Subversion into Radrails / Eclipse, which is something that is hard to figure out.
Install a Subversion client ¶
- Subversion: http://subversion.tigris.org, Tutorial
- For Windows: http://tortoisesvn.tigris.org/, Tutorial
(Other client is not needed if you use the Radrails IDE or another IDE with Subversion operations)