Michael Satterwhite wrote: > I've been googling this for the last day, and right now all I've got is > a headache. There are several articles on this - but they are not making > sense. One is using a field :association_foreign_key that I can't find > in my documentation.
That's not a field, it's an option, and it's clearly explained in the Rails association docs. > I admit it, I'm lost. > > Assume I have a Categories table. To make it simple, give it one field, > a name. > A category can be at the top level (no parents) > 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? Let me know, and perhaps I can be more help. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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.

