make use of collection rendering
```
<%= render @messages %>
```