Acts-as-tree in Rails3?

2019-03-20 20:39发布

I need to use Acts As Tree in my Rails3 project (ruby 1.9.2). But, there are lot of forks on github, so I don't know which should I choose, and which is used by other developers? On Railsplugins.org there are http://www.railsplugins.org/plugins/376-acts-as-tree, but last commit was from March...

3条回答
Summer. ? 凉城
2楼-- · 2019-03-20 21:03
霸刀☆藐视天下
3楼-- · 2019-03-20 21:17

I've gone with https://github.com/skyeagle/nested_set on my Rails3 projects. It's hard to say at this point where adoption will take things.

查看更多
看我几分像从前
4楼-- · 2019-03-20 21:18

I'd suggest using https://github.com/mceachen/closure_tree if you can add a new table to store the hierarchies and want efficient select and mutate performance.

查看更多
登录 后发表回答