I am trying to display the last comment for list of Items. I have managed to get all the items, and I see that looking at the podio gem, each Item has_many comments.
However trying to retrieve a list of comments using item.comments? always returns false, and item.comments always returns an empty array.
If however I use Podio::Comment.find_all_for( 'item', item.id ), I get the full list of comments.
Am I doing something wrong here, or have I missed something?
Any help would be appreciated.
Please sign in to leave a comment.