↧
Answer by Lucas Cash Hlongwane for NoMethodError: undefined method `feed' for...
Replace: @feed_items = current_user.feed.paginate(page: params[:page])with:@feed_items = current_user.feed.paginate(page: params[:page]) if logged_in?
View ArticleAnswer by Agazoom for NoMethodError: undefined method `feed' for nil:NilClass
The error is happening on page which is the root_path.current_user is not defined (is nil), so the method call current_user.feed in your controller is failing.Somewhere in the code, as part of the...
View ArticleNoMethodError: undefined method `feed' for nil:NilClass
I am following the steps strictly of Ruby on Rails Tutorials by Michael Hartl now and I am stuck in Listing 11.45 of Chapter 11.3- Manipulating microposts. When I run rake test before next section...
View Article