3-4 months later, when I returned to another project on RoR, with Mongoid. I am stuck in a strange problem. Since I followed the Mongoid. generated mongoid.yml
, remote database.yml
. and changed
#require 'rails/all' require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" require "sprockets/railtie"
in config/application.rb
.
I am still facing this problem. s starting from the server.
configuration.rb:85:in `method_missing': undefined method `active_record' for
Unfortunately, I had to comment on config.active_record.mass_assignment_sanitizer = :strict
and
config.active_record.auto_explain_threshold_in_seconds = 0.5
in config/environments/development.rb
.
source share