Topic: Complex Relationships
I have three models: User, Friendship, and Photo. Each Friendship belongs_to a user and a friend (both Users). Each photo belongs_to a User. I want to implement a "recent photos" list that only shows photos uploaded by the user's friends. I've been staring at this problem for a while now but I can't figure it out. Is this possible?
Thank you very much!