Children in acts_as_tree should acts_as_list

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?

On Wed, 01 Nov 2006 06:55:27 -0500, Kasper Bjørn [email protected]
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs