RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Ancestry 1.0.0 released!

I just launched Ancestry 1.0.0. Ancestry allows the records of a ActiveRecord model to be organised in a tree structure, using a single, intuitively formatted database column. It exposes all the standard tree structure relations (ancestors, parent, root, children, siblings, descendants) and all of them can be fetched in a single sql query. Additional features are named_scopes, integrity checking, integrity restoration, arrangement of (sub)tree into hashes and different strategies for dealing with orphaned records.

Comments

Why should I chose it over acts_as_nested_set?

You might want to check out the README :) Looks like this is a materialized path implementation. Can’t wait to try it out!

sudo gem install ancestry ERROR: could not find gem ancestry locally or in a repository

@george: Check updated README. It is distributed through gemcutter and you should install that first or specify it as a source on gem install.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in