Ok, been banging my head on this and just can’t figure it. Normally, any
table that has a belongs_to to another table you can easily access it
And it works perfectly for one table I have. Let’s call it… tags. So,
Tag -> has_many :blah_tags
Blah -> has_many :blah_tags
Blah_tag -> belongs_to :tag, belongs_to :blah
Ok, works fine. Based on a blah_tag entry, I can go blah_tag.blah.name
(or whatever). No problem.
Substitute, an identical setup for say Colour, and bam. The whole thing
throws nils everywhere. I may have a big batch of valid colour_tags, but
try to go: colour_tag.colour => NIL!
I don’t get it. Identical table setups…identical code… is colour
reserved? Do I need to restart servers or something (tried that…)? Am
I going crazy?
It makes no sense to me.