Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uninitialized constant Devise (NameError) with activeadmin

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?

like image 731
Raju akula Avatar asked Mar 03 '26 17:03

Raju akula


1 Answers

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.

like image 138
Pavan Avatar answered Mar 05 '26 16:03

Pavan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!