{{ messages[0].message }}
Refactoring to Controller files
Placing application logic in our routes file is getting messy. In a real world application, you most likely would put this in a controller, so let's learn how to create controller files in this lesson.
{{ comment.user.name }} {{ comment.created_at }}
{{ comment.likes.length }}
{{ childComment.user.name }} {{ childComment.created_at }}
{{ childComment.likes.length }}