i have a 2 tables
what i am trying to do is have attribute_id and attribute_secondary_id
both link to the ATTRIBUTES tables. At the moment attribute_id works
fine but I'm not sure how i should do the attribute_secondary_id.
belongs_to :attribute, :foreign_key => 'attribute_secondary_id' (won't
i want to do something like the following
item.attribute.name (for primary attribute)
item.attribute_secondary_id.name (not working...how should i do this?)
i don't really want to set up another table ITEM_ATTRIBUTES. Is there a
way to do this as i mentioned?