1

my database is MongoDB and I use ActiveAdmin. before i add gem 'activeadmin-mongoid', :git => 'git://github.com/simplybusiness/activeadmin-mongoid.git' rspec pass every test with mongoDB, but after that rspec get an errors

ActiveRecord::ConnectionNotEstablished

file config/application.rb I repalce

require all with

require "action_controller/railtie"

require "action_mailer/railtie"

require "active_resource/railtie"

require "sprockets/railtie"

I removed any activerecord config in folder config . I follow that link

sorry about my bad english.

Any help would be appreciated. Thanks!

4

0 に答える 0