ActiveAdmin Rails 3.1 安装问题
我尝试将 ActiveAdmin 与 Rails 3.1 一起使用,但在 railsgenerate active_admin:install
期间出现以下错误 我收到以下信息:
gems/activeadmin-0.3.0/lib/active_admin/namespace.rb:176:in `eval': uninitialized constant InheritedResources::Base (NameError)
现在任何生成/销毁命令都会发生这种情况。我已确保按照 github wiki 上的安装说明添加了所需的 3.1 gems(sass-rails 和 meta_search)。有人有什么想法吗?
I am trying to use ActiveAdmin with rails 3.1, but I get the following error during rails generate active_admin:install
I get the following:
gems/activeadmin-0.3.0/lib/active_admin/namespace.rb:176:in `eval': uninitialized constant InheritedResources::Base (NameError)
This happens with any generate/destroy commands now. I have made sure that I have added the required 3.1 gems (sass-rails and meta_search) per the install instruction on the github wiki. Does anyone have any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也遇到了这个。 Jose Valim 发布了inherited_resources gem 的新版本1.3.0,ActiveAdmin 没有将该gem 固定到之前的版本1.2.2。我可以通过将以下行添加到我的 gemfile 来解决此问题:
gem "inherited_resources", "1.2.2"
I ran into this too. Jose Valim released a new version 1.3.0 of the inherited_resources gem, and ActiveAdmin didn't pin the gem to the previous version 1.2.2. I was able to fix this issue by adding the following line to my gemfile:
gem "inherited_resources", "1.2.2"