I have this db schema :
|-- comment
|-- Post -|-- comment
|
| |-- comment
User --|-- Post -|-- comment
|
| |-- comment
|-- Post -|-- comment
What is the best way to retrieve all comments belonging to one user ?
Thanks
You can us a has_many :through association.
With that structure you can simply do: