From what I have understood, the equal method checks if the object is the same.
person = Person.create!(:name => \"David\") Person.find_by_name(\"David\").sho
equal checks if the reference is the same. It corresponds to the Object#equal? method. You want to use == to compare these objects.
equal
Object#equal?
==