DEV Community

loading...

Discussion on: Nested Comments in Ruby on Rails

Collapse
yarotheslav profile image
Yaroslav Shmarov

Good approach.
For example, unlike the example from chris-gorails you do not create a separate controller for each commentable model - by this your approach is better.

def find_commentable is good, althrough something tells me it can be further improved.