user123
user123

Reputation: 163

Facing issue while installing active admin with rails 4

I have included gem 'activeadmin', github: 'activeadmin' in my gem file and run bundle install.

When I run

rails g active_admin:install AdminUser

it gives me error

invoke devise /home/test/.rvm/gems/ruby-2.1.5@module/gems/activeadmin-1.0.0.pre1/lib/generators/active_admin/devise/devise_generator.rb:21:in `rescue in install_devise': To use devise you need to specify it in your Gemfile. If you don't want to use devise, run the generator with --skip-users. (ActiveAdmin::GeneratorError)

Please guide me how to solve this.

Upvotes: 2

Views: 1282

Answers (2)

dimakura
dimakura

Reputation: 7655

Add in your Gemfile the following line:

gem 'devise'

then

bundle install

Now you are ready to continue.

Note I would not recommend to go with the second option (skipping users).

Upvotes: 6

K M Rakibul Islam
K M Rakibul Islam

Reputation: 34318

Add devise to your Gemfile:

gem 'devise'

Then run:

bundle install

Upvotes: 0

Related Questions