How to build nested comments and threads in Ruby on Rails
Implementing polymorphic, reusable comments across models and limiting the nesting allowed for nested comment threads
Using AJAX, we can submit our comments and have them render onto the page without a page refresh.
Nested comment threads pose a lot of unique challenges. One of these is deleting comments because you can easily lose the child comments or context. We'll take a look at a couple great ways of handling this.