Implementing commenting system using acts_as_nested_set


#1

Hi,

I have been trying to implemented a commenting system for my Job
model. I pretty much got my model to work using (better_)
acts_as_nested_set. But I am finding it difficult to display the
comments in views. How would I recurse the comment tree and display
the comment details for each child. I was thinking of something like
this:

---------Controller------------
@comments = job.comments

------------View------------
for comment in @comments

display comment details here

<% --recurse-- unless comment.children.empty? %> end

Any help?

Thanks much.