Rails: Parent-Child hierarchy

  • by

If you understand basic Parent-Child hierarchies, advise to move on to a well used and supported gem using nestled sets.

Setup:
https://github.com/collectiveidea/awesome_nested_set
https://mixandgo.com/learn/nested-trees-with-ruby-on-rails

Cheatsheet:
https://github.com/collectiveidea/awesome_nested_set/wiki/Awesome-nested-set-cheat-sheet#advanced-usage

Rendering in view:
https://stackoverflow.com/questions/1372366/how-to-render-all-records-from-a-nested-set-into-a-real-html-tree

Refs:


https://stackoverflow.com/questions/1372366/how-to-render-all-records-from-a-nested-set-into-a-real-html-tree
https://rubygems.org/search?utf8=%E2%9C%93&query=awesome_nested_set
http://railscasts.com/episodes/196-nested-model-form-part-1
https://mixandgo.com/learn/nested-trees-with-ruby-on-rails
https://github.com/collectiveidea/awesome_nested_set/wiki/Awesome-nested-set-cheat-sheet#advanced-usage
https://stackoverflow.com/questions/24760721/awesomenestedset-rails-4-1-4-nested-set-options-throws-exception
https://stackoverflow.com/questions/4384301/how-to-generate-nested-lists-with-awesome-nested-set#4607434
https://www.rubydoc.info/gems/awesome_nested_set/3.2.1/CollectiveIdea/Acts/NestedSet
https://github.com/ClosureTree/closure_tree

Leave a Reply

Your email address will not be published. Required fields are marked *