Computing & Communications Center  Ruby on Rails at WPI  Ruby on
Rails code based on Agile Web Development with Rails 1st edition
has to be adjusted in order to run at WPI. We'll cover the
changes that we've come across below. We noted if these changes
are a deviation from the book's code or if they are an extra
step needed to ensure the application runs.  Creating the
framework (deviation)  The book uses the code 'rails depot'.
Change it to 'rails depot --database=mysql' to point it to the
correct database type. The book assumes SQLlite is being used as
the database. WPI uses MySQL.  Specify the MySQL plug-in (extra
step)  Rails has released new versions since this edition of the
book. The new Rails version is more modular, so some old built-
ins need to be specified as plug-ins.    1. Edit the file
../depot/config/environment.rb   2. Add the line: config.gem
"mysql"  Specify the application's base URL on the web server
(extra step)  This line limits the application to controlling
URLS under the URL set above