uninitialized constant Devise (NameError) with activeadmin

activeadmin, devise, ruby, ruby-on-rails-4

Solution

You should include the devise gem in the `Gemfile`.Add this line to your `Gemfile`

gem 'devise'

Even though `Devise` comes as a dependency along with `ActiveAdmin`,you should manually include that in the `Gemfile` to load the `gem`.

For clarification,see this link.

Problem

I got below error when I installed active_admin gem with rails4 version. taken gem: `gem 'activeadmin', github: 'gregbell/active_admin'` ``` /config/initializers/devise.rb:3:in `': uninitialized constant Devise (NameError) ``` Any Ideas?

Original source