On Nov 7, 12:21 am, Matt Harrison <[email protected]> wrote: > On Sat, Nov 07, 2009 at 12:06:07AM +0000, Matt Harrison wrote: > > It turns out that hash is a method defined by activerecord already. I > originally had problems naming my model Hash so I changed it to FileHash. I > didn't realise that hash was a method as well as a class. > > Changing the column name in the db, rails and the c++ app has fixed the > problem :) All objects in ruby have a hash method for which the following statement should hold a.hash != b.hash => a!=b Among other things it is used when you use something as a key in a Hash. Fred --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

