在 Rails 2.3.8 中从供应商的 gems 切换到 Bundler 后出现 NameError
/Users/me/.rvm/gems/ree-1.8.7-2011.03@evokat25/gems/activesupport-2.3.8/lib/active_support/dependency.rb:105:in `const_missing':NameError: 未初始化的常量 Rails:: Initializer::Paperclip
在我的任何地方都没有提到 Rails::Initializer::Paperclip代码库。有人知道它想做什么吗?
/Users/me/.rvm/gems/ree-1.8.7-2011.03@evokat25/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:105:in `const_missing':NameError: uninitialized constant Rails::Initializer::Paperclip
There is no mention of Rails::Initializer::Paperclip anywhere in my code base. Anybody have a clue as to what it is trying to do?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我明白了这一点。我在 config/initializers/.rb 和 config/environments/.rb 中有一些配置行。当我在每个适当的宝石中添加“要求”行后,问题就消失了。
I figured this out. I had some configuration lines in config/initializers/.rb and config/environments/.rb. After I put the "require" lines in each for the appropriate gems, the problem disappeared.