Rails rails 使用 mysql 浏览出现

Unknow user · January 06, 2013 · Last by reyesyang replied at January 06, 2013 · 2332 hits

NoMethodError in PeopleController#index

undefined method `accept' for nil:NilClass Rails.root: /opt/html/demo

这个和 mysql 有什么关系

Unknow user #1 January 06, 2013

使用 @events=Event.all时,就出现这样的错误~

就是 PeopleController 中的 index 方法中,有对象调用了 accept 方法,但该对象此时是 nil

You need to Sign in before reply, if you don't have an account, please Sign up first.