Topic: Using RJS to hide only part of a partial?
I have a partial that displays a list of comments. When the user that owns the comment clicks delete, it should hide only that comment. (it is later deleted by my controller)
I'm having trouble since I can't just tell the RJS file which comment in the partial it should hide. With this code, it fades all of the comments out, which is of course not what I want:
(:comments is a simple div ID)
My Partial call:
<%= render :partial => 'show/comment',
:collection => @comments_submitted %>
Last edited by zac439 (2007-10-04 15:36:08)