From: Greg Ma Date: 2010-06-16T20:11:16+09:00 Subject: Compare two objects Hi, I have an array of events comming from a database and I have a new object (so without an id). I would like to check if my new object already exists in the database. I tried exists? and include? but obviously id doesn't work because my new object has no id. Is there a simple way to compare my object or I will have to compare each attribute? Greg -- Posted via http://www.ruby-forum.com/.