Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

method_missing: undefined method `active_record' #39

leabdalla opened this Issue May 23, 2013 · 5 comments


None yet
5 participants

When I try to execute

$ rails g devise:install

It returns the errors:

/.rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.11/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x007fc6cbc2b6d8> (NoMethodError)

Any idea?

Did you set the ORM require bit right in devise.rb? This works for me:

  # ==> ORM configuration
  # Load and configure the ORM. Supports :active_record (default) and
  # :mongoid (bson_ext recommended) by default. Other ORMs may be
  # available as additional gems.
  require 'devise/orm/mongoid'

elia commented May 29, 2013

I'd also check config/application.rb and config/environments/* for ActiveRecord related configurations

i am facing same problem.

require "rails"
require "active_model/railtie"
require "active_job/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_view/railtie"
require "sprockets/railtie"
require "rails/test_unit/railtie"

when am trying
rails g devise:install

`method_missing': undefined method `active_record' for #<Rails::Application::Configuration:0x007fa637253d90> (NoMethodError)

elia commented Oct 13, 2015

@sajjadmurtaza49 you need to remove all the active record related entries from application.rb and config/initializers/*


elia commented Oct 13, 2015

@sajjadmurtaza49 and of course config/environments/* as mentioned above

@boie0025 boie0025 closed this Jun 6, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment