Working on a forum in rails, but I am stumped on the storing/
retrieving of forum posts.
Using Acts_as_Tree, but can’t figure out how to query my model to get
a list of the most recent posts in every thread.
This gets the parent of each thread…
parent_posts = Post.find(:all, :conditions => “parent_id is NULL”)
This gets all of the posts in a thread that are siblings…
sibling_posts = Post.children.find(parent_post)
Any ideas please?