Topic: delete a user andl their many posts that have many children?
is there a rails way to do this? if i were to brute force this, i would probably do something like this algorithm
@user = User.find(:first, id == params[id])
@posts = Post.Find(:all, ....user_id = @user.id)
@posts.each do |f|
Children_of_posts.destroy :conditions post_id == f.id
Post.destroy all where user_id = @user.id