SyntaxFix
Write A Post
Hire A Developer
Questions
This way optimizes for readability, but it's not as efficient in terms of database queries:
# Retrieve all topics, then use array subtraction to # find the ones not in our list Topic.all - @forums.map(&:id)