开发者

Weighted nested set

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜