Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Trees with Ancestry

#262 Trees with Ancestry

Apr 18, 2011 | 9 minutes |
The Ancestry gem works like a tree but also allows us to fetch deeply nested messages in a single query. It provides a method to arrange them after fetching.
  • Download:
  • source codeProject Files in Zip (206 KB)
  • mp4Full Size H.264 Video (16.7 MB)
  • m4vSmaller H.264 Video (10.5 MB)
  • webmFull Size VP8 Video (23.6 MB)
  • ogvFull Size Theora Video (21.8 MB)