Hello.
I have an application where User
has_many Status
. And Status
has_many Likes
.
How do I get the total likes a user has? For example, it has 2 statuses with 10 likes each, which gives a total of 20 likes. How do I get this value?
My model is simple:
User has_many Status
Status has_many Likes