开发者

Weighted nested set

开发者 https://www.devze.com 2022-12-20 04:14 出处:网络
Are there any gems or plugins tha开发者_如何学编程t offer a nested set but with a weight also.

Are there any gems or plugins tha开发者_如何学编程t offer a nested set but with a weight also.

I want to be able to create a nested set and order each subset by its weight.


Ancestry on git hub looks good

http://github.com/stefankroes/ancestry

node.subtree.all(:order => :weight)

Has anyone done anything similar? I am interested to hear your solutions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号