Advanced Active Record: Using Subqueries in Rails | Dark Hacker News