search for: ad_enabled

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

Did you mean: vad_enabled
2006 Nov 27
0
how to select with a kind of through relation(has_one)
I have a select issue with my members, my database structure is below User has many shops Shop belongs to a membership Shop has many items For front page I want to show items where membership of the shop has ad_enabled and this is what I have in mind but it returns with "Association named ''membership'' was not found; perhaps you misspelled it?" I tried to add to Item class belongs_to :membership And added Membership Class following has_many :items, :through => :shops but helaa...