RoR newbie wrote:
I have created the attr_accessors for everything I need but still when I try to get some of the attributes, it returns nil. I know they have a value since I can check the database with external program.
For example:
object = Object.find(id) object.id # works object.name # works object.read_by_default # doesnt work
I assume read_by_default is a boolean. Are you sure you're testing that this attribute is not nil, and not that the value is true?
Chris