I am currently working on a blog site in which each blog entry will
have its own comments. The comments can be seen by clicking a comments
link present at the end of each blog entry. I am using RJS to toggle
the view of the comments.
#code for the comment link and the comments form
page.select("#comments").each do |element}
Using the above code I am able to toggle the visibility for the
comments of all the blog entries. However what I want to do is to
toggle the comments only for the blog entry for which the comments
link has been clicked.
Any help in this regard with be greatly appreciated.