How do I setup the proper permission level for this scenario with cancan?
Post has many Comments.
The post's author can delete any comment.
The comment's author can delete only his/her comment.
Currently I have:
authorize!(:remove_comment, @post)
and
can :remove_comment, Post, :user_id => user.id
Currently it only allows the post's author to delete the comment but I'd like the commenter to remove his/her own comment as well.