On 18 June 2010 20:10, Marnen Laibow-Koser <[email protected]> wrote: > Michael Satterwhite wrote: >> A category can be subordinate to another category (it's child - and >> obviously, the first category is the parent. This is a self-referential >> many-to-many. > > Are you *sure* you mean that it's many-to-many? If that were so, a > category could have more than one parent. Is that what you want? Or do > you really mean a simple hierarchical tree?
+1 It does sound like you're quite sure you're expecting to have many-children and many-parents - almost as if a self-referential has_as_belongs_to_many is what you're wanting - never tried it myself, but would give it a bash on a test application if that's what you're after. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

