我在邮件中得到了一个用于nil:NilClass的NoMethodError:未定义方法`get_best_compatible‘
`from /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.0/lib/active_support/whiny_nil.rb:48:in 'method_missing'from /usr/lib/ruby/gems/1.8/gems/mail-2.2.7/lib/mail/body.rb:143:in 'get_best_encoding' from /usr/lib/ruby/gems/1.8/gems/mail2.2.7/lib/mail/message.rb:1830:in 'identify_and_set_transfer_encoding' from /usr/lib/ruby/gems/1.8/gems/mail-2.2.7/lib/mail/message.rb:1646:in 'ready_to_send!' from /usr/lib/ruby/gems/1.8/gems/mail 2.2.7/lib/mail/message.rb:1664:in 'encoded' from /usr/lib/ruby/gems/1.8/gems/mail-2.2.7/lib/mail/message.rb:1672:in 'to_s'`当使用邮件创业板时
当使用oauth时,我得到了一个You have a nil object when you didn't expect it! You might have expected an instance of Array. The error occurred while evaluating nil.split错误
即使在我的项目中运行rails g时,也会得到/usr/lib/ruby/gems/1.8/gems/railties-3.0.0/lib/rails/generators.rb:232:in 'help': You have a nil object when you didn't expect it! (NoMethodError) You might have expected an instance of Array. The error occurred while evaluating nil.map!
请注意,这些东西几天前运行得很好,我不知道我是如何把这个糟糕的项目搞砸的。使用*ruby 1.8.7 (2010-06-23 patchlevel 299) x86_64-linux*
发布于 2010-10-10 06:53:38
才知道原因。我已经和Sting.downcase和String.mb_char.downcase谈过了,我认为这很好。谢谢红宝石调试器:-)
https://stackoverflow.com/questions/3897785
复制相似问题