Ruby on rails NameError(未初始化的常量Rake::EarlyTime):

Ruby on rails NameError(未初始化的常量Rake::EarlyTime):,ruby-on-rails,Ruby On Rails,我在rails应用程序中添加了一个新的gem for new relic,安装后, 当我在本地启动服务器进行开发时,它工作正常 但是在控制器中进行一些更改并尝试重新运行应用程序后,它显示了如下错误 NameError (uninitialized constant Rake::EarlyTime): rake (10.1.0) lib/rake/ext/time.rb:9:in `<=>' activesupport (3.2.13) lib/active_support/f

我在rails应用程序中添加了一个新的gem for new relic,安装后, 当我在本地启动服务器进行开发时,它工作正常

但是在控制器中进行一些更改并尝试重新运行应用程序后,它显示了如下错误

NameError (uninitialized constant Rake::EarlyTime):
  rake (10.1.0) lib/rake/ext/time.rb:9:in `<=>'
  activesupport (3.2.13) lib/active_support/file_update_checker.rb:100:in `each'
  activesupport (3.2.13) lib/active_support/file_update_checker.rb:100:in `max'
  activesupport (3.2.13) lib/active_support/file_update_checker.rb:100:in `updated_at'
  activesupport (3.2.13) lib/active_support/file_update_checker.rb:66:in `updated?'
namererror(未初始化的常量Rake::EarlyTime):
rake(10.1.0)lib/rake/ext/time.rb:9:in`'
activesupport(3.2.13)lib/active\u support/file\u update\u checker.rb:100:in'each'
activesupport(3.2.13)lib/active\u support/file\u update\u checker.rb:100:in'max'
activesupport(3.2.13)lib/active\u support/file\u update\u checker.rb:100:in'updated\u at'
activesupport(3.2.13)lib/active\u support/file\u update\u checker.rb:66:in'updated'
找到了解决方案

我尝试禁用Gemfile中的new relic gem,这解决了我的问题


不确定这个问题的真正原因。

你能在更改原始帖子之前和之后添加文件吗?实际上,这是唯一的一次修改,我只是注释了一行,启用了另一行。。这一行实际上调用了两个不同类的方法。