0
votes

I am trying to install active_admin with Ruby on Rails. Each time I key in:

rails g active_admin:install

I get error messages as below:

Users/audreyjoanne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.4/lib/active_support/inflector/methods.rb:268:in 'const_get': uninitialized constant AdminUser (NameError) from /Users/audreyjoanne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.4/lib/active_support/inflector/methods.rb:268:in 'block in constantize' from /Users/audreyjoanne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.4/lib/active_support/inflector/methods.rb:266:in 'each'

How do I fix this?

1

1 Answers

0
votes

You need to look after Dependencies of Active Admin gem.
AdminUser model needs to be created first.