acts_as_recursive_tree (rubygems):    This is a ruby gem that provides drop in replacement for acts_as_tree but makes use of SQL recursive statement. Be sure to have a DBMS that supports recursive queries when using this gem (e.g. PostgreSQL or SQLite). 
Keywords: activerecord|postgresql|rails|ruby|sqlite3