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.
object = Object.find(id)
object.id # works
object.name # works
object.read_by_default # doesnt work
I’ve been having this on and off now and it’s driving me crazy. I must
be doing something very slightly but fundamentally wrong. Any ideas? I’m
a bit self-conscious about showing the actual code but it’s as simple as
my example above.