I have done simple Rails finds for two tables, but now find that with a 4 table query I am not making good progress. All tables are connected with keys and are basically:
- User (has many)
- Phones (has many)
- Campaigns (has many)
- Calls
I just want to count the total number of calls a specific user has and the total number of calls for a specific campaign. I could also add user-id to Campaigns and Calls but for some reason I think that cheating or a bad idea. I just don't know.