sadaf2605 sadaf2605 - 1 year ago 132
Ruby Question

How to generate active_admin:install on active admin rails 5 primary support?

Activeadmin readme suggests to use following to use for primary support on rails 5.

gem 'inherited_resources', github: 'activeadmin/inherited_resources

Even after
$ bundle install
it says there is no
generator available.

$ rails generate active_admin:install
Running via Spring preloader in process 6209
Could not find generator 'active_admin:install'. Maybe you meant 'responders:install', 'active_record:model' or 'active_record:migration'
Run `rails generate --help` for more options.

Answer Source

Active Admin master has preliminary support for Rails 5. To give it a try, these Gemfile changes may be needed.

Whats mean you should add this gem with gem 'activeadmin', github: 'activeadmin', so Gemfile should looks like:

gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources

Read the readme carefully.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download