Rails 3.2.8 “NotImplementedError: method `backtrace' called on unexpected T_NODE object” error
我遇到以下错误:
NotImplementedError: method `backtrace' called on unexpected T_NODE object
当使用Rails控制台通过" Domain.new"访问一个特定的模型Domain时。
模型定义为:
1 2 | class Domain < ActiveRecord::Base end |
环境:
- Rails 3.2.8
- ruby 1.9.3p194(2012-04-20修订版35410)[x86_64-linux]
-
Linux cb-2 3.2.0-32-generic#51-Ubuntu SMP Wed Sep 26 21:33:09 UTC
2012 x86_64 x86_64 x86_64 GNU / Linux
完整追溯信息位于https://gist.github.com/954bcdf833c8aef4d2f9
项目中还有41个其他模型可以进行测试,没有任何问题
非常感谢您能够对这个问题有所了解。
罗斯
如我所记正确的那样,我有类似的回溯记录。
在我的情况下,数据库未正确初始化,并且
因此,我的建议是,尝试运行