Does Rails 2.0 *require* a db? Sure seems that way ...

Nope. Just do this in your environment.rb:

   config.frameworks -=
[:active_record, :action_web_service, :action_mailer]

All will then be well (or, at least it works for me :slight_smile:

Steve Ross wrote:

Nope. Just do this in your environment.rb:

  config.frameworks -=
[:active_record, :action_web_service, :action_mailer]

All will then be well (or, at least it works for me :slight_smile:

I've got a small app which doesn't use active_record

I did have to comment out #require 'test_help' in my test_helper.rb
(since that requires fixtures, which in turn needs ActiveRecord) (and
then copied into my test_helper.rb the bits from test_help which were
relevant.

I also had to edit environment.rb to add

module Rails
   class Initializer
     def load_observers
       if configuration.frameworks.include?(:active_record)
         ActiveRecord::Base.instantiate_observers
       end
     end
   end
end

Fred