From: Matt Darby Date: 2008-06-30T00:12:26+09:00 Subject: Re: Recursive Logic - Examples and Resources? > So, if the set is 1 2 3 4 5 6 7 8 9 10, and User1 has (9, 17), while > User2 has (3, 7), User2 could be part of the set, while User1 could not. This approach is pretty naive, but it might work: range = 0...10 User.find(:all, :conditions => ["num1 IN (?) and num2 IN (?)", range, range])