Hi, What's an easy way to compare for equality two model instances (that haven't been saved yet). Or in other words pretty much just two object instances. I've tried "==" and "eql?" on the objects directly and this doesn't work.
How about: "m1.to_yaml.eql?(m2.to_yaml)" Is this the simplest way? -- Greg http://blog.gregnet.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

