has_many :through with a foreign key?
问题 I've read multiple questions about this, but have yet to find an answer that works for my situation. I have 3 models: Apps , AppsGenres and Genres Here are the pertinent fields from each of those: Apps application_id AppsGenres genre_id application_id Genres genre_id The key here is that I'm not using the id field from those models. I need to associate the tables based on those application_id and genre_id fields. Here's what I've currently got, but it's not getting me the query I need: class