SetupDevelopment
This page describes how to configure this project on a developer workstation. Edit it to include your gems and databases.
Get the Code
Checkout from the Subversion URL on the Trac/SVN tab. Use your Assembla username and password.
If you use Radrails (with its embedded Subclipse) follow these svn checkout instructions
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.
Local Configuration
In order to avoid overwriting your configuration files, we have renamed the configuration files that you are likely to modify to ".example". Please copy these files and edit the new versions to match your environment.
- config/database.yml.example -> config/database.yml
- config/initializers/local_config.rb-example -> config/initializers/local_config.rb . In this system, user_environment.rb holds default settings, and local_config.rb - local configurations that you want to change. If you do not have a mail server installed on your computer, you must edit the ActionMailer parameters in this file so that the application can connect to your SMTP email account and send email.
Set up the database
- Create a database
- Configure config/database.yml to connect to the database.
We update this database using Rails Migrations. Go to a console prompt in your application directory and run the Migrations with
rake db:migrate
If you start a Webbrick server for the rails application you just checked out and configured, you should be able to get the application root in a browser, usually on URL http://localhost:3000 . This will display the home page.