Rails 2.1.0 without a Database

Posted by Jesper on June 03, 2008

If you are running the just released Rails 2.1.0 and have disabled ActiveRecord, you will likely run into problems launching script/server.

The culprit is the new config/initializers/new_rails_defaults.rb, which should test to see if ActiveRecord is loaded.

The bug report is here and the patch “AR can be disabled, new_rails_defaults.rb should check” has already been applied.

It’s a very tiny patch, so until the next Rails release is out, you can easily apply the patch manually.