A gem that uses the i_dig_sql gem to generate SQL strings. You can it an instance and it generates the SQL to find its ancestors: Example: page -> chapter -> book -> library