0

我有点被这个错误困住了。Postgres 正在运行,Rails 服务器也在运行,我在任何页面上都收到以下 NoMethodError:

undefined method `result' for #<TypeError: wrong argument type nil (expected Array)> 

应用程序跟踪不是很明确:

config/environments/development.rb:45:in `call'

提取的源代码(大约第 45 行):

   previous_level = Rails.logger.level
   Rails.logger.level = Logger::ERROR if env['PATH_INFO'].index("/assets/") == 0
   @app.call(env)
 ensure
   Rails.logger.level = previous_level
 end

它可能与 PostgreSQL 适配器有关。

知道如何解决这个问题吗?

4

1 回答 1

1

Ok, just got it after a while of tracking down to the bug source: it was a problem of character encoding between US-ASCII and UTF-8... a 'space' was not really a 'space' in my Gemfile.

于 2013-04-04T21:55:40.080 回答