On Wed, 01 Nov 2006 06:55:27 -0500, Kasper Bjørn
<kasperbn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hey
>
> I have a Page model that acts as a tree but I also want the children to
> act as lists:
> Is there a plugin out there somewhere that does the trick for you or
> what would you suggest?
>
Try this line in your model.
acts_as_list :scope => :parent
Regards,
Bill.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---