Tuesday, February 19, 2008

Rails without a database

Add this to environment.rb:
config.frameworks -= [ :active_record]

This is what lines 19 to 21 in environment.rb say (Rails version 2.0.2):
  # Skip frameworks you're not going to use (only works if using vendor/rails).
# To use Rails without a database, you must remove the Active Record framework
# config.frameworks -= [ :active_record, :active_resource, :action_mailer ]

No comments: