Forum: Ruby on Rails equality

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
6fa76b3113f66ea5055ad3f10ab92819?d=identicon&s=25 Grayson Piercee (grayson)
on 2008-10-24 08:07
is there a better way to test for equality than this

user1.interests.collect(&id).sort == user2.interests.collect(&id).sort


This topic is locked and can not be replied to.