Hierarchische / Tree Navigation

Created: 12.06.2026, Updated: 12.06.2026,14:20:51
Intro Text in Arbeit ...

Mit dem Gem Ancestry werden wir uns nun beschäftigen.

Gem Ancestry installieren und in ein Model integrieren

Gemfile:
# https://github.com/stefankroes/ancestry
gem "ancestry" # currently 5.1.0 ()2026.06.10)


Bundle install ausführen:

./bin/bundle install
Bundle complete! 36 Gemfile dependencies, 132 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.

./bin/bundle info ancestry
* ancestry (5.1.0)
Summary: Organize ActiveRecord model into a tree structure
Homepage: https://github.com/stefankroes/ancestry
Source Code: https://github.com/stefankroes/ancestry/
Changelog: https://github.com/stefankroes/ancestry/blob/master/CHANGELOG.md
Bug Tracker: https://github.com/stefankroes/ancestry/issues
Path: /opt/ruby-4.0.5/lib/ruby/gems/4.0.0/gems/ancestry-5.1.0