Jeff Pritchard wrote:
> I have a list of Groups with members and sub-groups in an unlimited
> depth.
> 
> It has the same basic structure as a directory listing in either Mac
> Finder or Windoze Explorer where the files a roughly analogous to my
> members, and the sub-dirs are analogous to my sub-groups.  Just as in
> Mac Finder, I would like to have it remember the "open-ness" of the
> dirs/sub-dirs in the db so user will see it the same way on subsequent
> uses of the app.
> 
> Is there some sort of a plugin for displaying this kind of a data set in
> Rails?
> 
> If not, how would you go about designing this?  I'm stuck.

Why are you stuck?  2 minutes of Google searching on implementing 
hierarchical trees in SQL would have led you to the nested-set pattern. 
Another minute would have led you to the awesome_nested_set plugin for 
Rails.

> 
> thanks,
> jp

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.

Reply via email to