Type of Type

Posted by Bart ten Brinke Fri, 23 Feb 2007 15:51:28 GMT

Do not create a model with a field named "type". As this will break the activerecord object sometimes. And when it breaks you'll get errormessages that will point you in quite a different direction. If for example you do a Find that returns an object, you'll encounter an 'unexpected tINTEGER'. Which offcourse speaks for itself.

Comments

(leave url/email »)

   Preview comment