开发者

How can I fix this error?

Here's the error:

NoMethodError in Videos#feed_display

Showing /rubyprograms/dreamstill/app/views/videos/feed_display.ht开发者_高级运维ml.erb where line #6 raised:

undefined method `user_id' for #<User:0x1034cb068>

It refers to this line:

<%= render_timeline current_user.recent_events %>


If I can recall from your last issue, I suggested interpolating user_id, which it seems like it needs #{id}?


Somewhere in your code lurks u.user_id instead of u.id.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜