Hi I have created three models
class Winery
has many :brands
end
class brand
has many :wines
belongs_to winery
end
class wines
belongs_to brand
end
Now I am trying to do a find method that references from wines to
winery. How do I do that. I tried using Wines.find(:all, :include
[:brand,:winery]) and it doesn’t work. Is there any simpler way other
than using mysql? Thank you