Reputation: 245
I'm trying the following code however in the console it just returns the entire microposts array. I want to get the tag_list for each micropost that a user has posted.
As in I want User.find(1).microposts[0..-1].tag_list
User.find(1).microposts.each {|micropost| micropost.tag_list}
How can I get the tag_list for all posts?
Sorry for the noob question
Upvotes: 0
Views: 51