[英]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. Activeadmin 自述文件建议使用以下命令作为Rails 5上的主要支持。
gem 'inherited_resources', github: 'activeadmin/inherited_resources
Even after $ bundle install
it says there is no active_admin:install
generator available. 即使在$ bundle install
它仍然说没有active_admin:install
生成器。
$ 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.
Active Admin master has preliminary support for Rails 5. To give it a try, these Gemfile changes may be needed . Active Admin master对Rails 5具有初步支持。要尝试一下, 可能需要更改这些Gemfile。
Whats mean you should add this gem with gem 'activeadmin', github: 'activeadmin'
, so Gemfile should looks like: 这意味着您应该将此宝石添加为gem 'activeadmin', github: 'activeadmin'
,因此Gemfile应该如下所示:
gem 'activeadmin', github: 'activeadmin'
gem 'inherited_resources', github: 'activeadmin/inherited_resources
Read the readme carefully. 仔细阅读自述文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.