I''m currently using acts_as_tree to handle my categories hierarchy.
Animals
Birds
Dogs
Themes
Farm
City
My product model currently just has a "product_id" column, with an
acts_as_tree object and belongs_to :category
If I wanted to define a product that belonged to more than one category (ie
"Rooster" -- could belong to both Bird and Farm categories
simultaneously),
what is the best way to do this?
--
Anthony Ettinger
Ph: 408-656-2473
var (bonita, farley) = new Dog;
farley.barks("very loud");
bonita.barks("at strangers");
http://chovy.dyndns.org/resume/
http://utuxia.com/consulting
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---