Tag: mysql

nil的未定义方法`eq’:nilClass with rails 3和ruby enterprise on ubuntu hardy

我不确定是什么原因导致这个错误但是因为我在乘客中遇到了这个问题而现在在控制台中我也在想,也许mysql驱动程序是问题所在? 在osx / 10.6上,一切都按预期工作。 它只是不会在Ubuntu 8.04上耐用。 我把问题钉在了“destroy”方法上,或者当我直接调用activerecord实例的方法时。 为什么会这样? 有任何想法吗? 系统: Ubuntu 8.04耐用。 ruby 1.8.7(2010-04-19 patchlevel 253)[i686-linux],MBARI 0x8770,Ruby Enterprise Edition 2010.02 rails 3.0.0-beta4 mysql Ver 14.12 Distrib 5.0.51a,debian-linux-gnu(i486)使用readline 5.2 这是错误输出 root@gehege:/var/www/foobar.com/api.foobar.com/v1# rake cleanup:status_cleanup RAILS_ENV=production –trace (in /var/www/foobar.com/api.foobar.com/v1) ** Invoke cleanup:status_cleanup (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute cleanup:status_cleanup rake aborted! undefined method `eq’ […]