This should probably be in the controller not the view, you should assign this to `@comments`. That's the standard rails idiom. It allow you to take SQL logic out of your views and keep it in models and controllers. Separation of concerns and all that.