I'm new to building databases and I'm trying to do a JOIN based on a having three database tables.
Table A = ID, Name, etc
Table B = ID, Name, etc
Table C = ID, TableAId, TableBId
What I can't figure out is using active record how to make this selection. I'm trying to make as few requests as possible, but am getting stumped on how it should all be written without doing three separate calls.
See Question&Answers more detail:os