Union of 2 active record relation object in rails 3
问题 I have a content model represented by class: content . Now users can rate content , review content or do both. I want to find all the content that a user have either rated , reviewed or rated and reviewed . The reviews table has a many-to-one association with the content table (meaning a content can be reviewed many times). A similar relationship exists between the ratings table and the content table. I'm thinking I should do separate queries to find all rated content by a user, then all