Rails: Creating an “All activity feed” from multiple models
问题 I have a page that has several "Feeds". In my controller I have something like this: def index @plays = current_user.plays.includes(:game).order("created_at desc") @wants = current_user.wants.includes(:game).order("created_at desc") @ratings = current_user.ratings.includes(:game).order("created_at desc") end and I use code like this in the view: <% @plays.each do |play| %> You played <%= play.game.name %></p> <% end %> Now I want to make a forth feed on the page that is "all activity" which