开发者

dynamic tree menu using awesome nested set

how do you create a dynamic tree menu helper using awesome nested set (or any other set plugin) in rails ? the result should look something like this:

<div class="level_0">
  <span class="title">Categroy</span>
  <div class="level_1>
    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

    <span class="title">SubCategroy</span>

    <开发者_C百科;div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

  </div>

  <div class="level_1>
    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

  </div>
</div>


I've managed to make something similar to what you describe following this:

http://asciicasts.com/episodes/162-tree-based-navigation

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜