Thursday, December 30, 2010

"type deprecated use class instead"

I have a table with a column named "type" and I 'd like to access  
the type field of the correspondant model object but I get a deprecation warning when I use the following code :

type is a reserved word in ruby for now. So call your type field  
something else like mytype or kind.

No comments:

Post a Comment