I\'m trying to access all comments from a given user with user.comments. The query is to go through two different models, which likely both return results. My r
user.comments
I found a solution after many tries. You can use a scope with param in your last has_many sentence in the User model:
has_many :comments, -> (user) {where organiser: user.organisers}, through: :participants
The "user" param represet the User object whom is calling the comments method.