[英]rails generate rspec:install config/environments/development.rb:1:in `<top (required)>': undefined method `configure'
[英]config/environments/development.rb:30:in `<top (required)>': undefined local variable or method `config' for main:Object (NameError)
我正在尝试使用Ruby on Rails安装active_admin
。 每次输入:
rails g active_admin:install
我收到如下错误消息:
用户/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':未初始化的常量来自/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的AdminUser(NameError)来自/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的“阻止常量化”:每个'
我该如何解决?
您需要照顾Active Admin gem的依赖项。
首先需要创建AdminUser模型。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.