Rails – Nested includes on Active Records?

I have a list of events that I fetch.
I’m trying to include every user associated to this event and every profile associated to each user. The Users get included but not their profiles.

How Would i do this

Event.includes(:users [{profile:}])

The docs don’t seem to be clear:
http://guides.rubyonrails.org/active_record_querying.html

3 Answers
3

Leave a Comment