search for: blah_tags

Displaying 1 result from an estimated 1 matches for "blah_tags".

Did you mean: blah_tag
2006 Mar 24
7
belongs_to relation busted....why?
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 by: table1.table2.field And it works perfectly for one table I have. Let''s call it... tags. So, I''ve got: 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...