Configuration


When you first start up RadRails, there are several configuration options you may want to set. Navigate to Window -> Preferences -> Rails as shown below and explore the preferences available.


Figure 1.1

The preferences we will consider are Gems -> Rails and Gems -> Rake. These preferences indicate the absolute paths to your Rails and Rake gem directories, and are used by several components of RadRails. Select the Gems -> Rails page and click Add. Pick a name for the gem (anything you want) and browse to directory. The Rails gem directory will be something like {RUBY_INSTALL}/lib/ruby/gems/1.8/gems/rails-1.1.x, where RUBY_INSTALL is the base directory of your Ruby installation.


Figure 1.2

Follow the same steps as above to specify your Rake gem. It will be located in the same directory as your Rails gem, but named something like rake-0.7.x instead.

You'll also probably want to specify the location of your Ruby interpreter. If you try to run Test::Unit tests or launch a Ruby script without defining this preference, you'll be met with a warning dialog. Navigate to Window -> Preferences -> Ruby -> Installed Interpreters as show below. Follow the same process as above, with the Rails gems, to specify the location of your interpreter.


Figure 1.3