I have a model Profile that has a onetoone with the model Interest. If I query an array of Profiles using where, how would I then get another separate array composed of the Interests associated with those originally queried Profiles?
Something like
@foundProfiles = Profile.where(field: data)
into
@foundInterests = @foundProfiles.Interest.all
this doesn't work, but that's the idea I'm trying to get at.