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
.
精彩评论