-<table class="table table-sm align-middle">
+<table class="table table-sm align-middle messages-table">
<thead>
<tr>
<% columns.each do |column| %>
</tr>
</thead>
<tbody>
- <%= render :partial => inner_partial, :collection => messages %>
+ <%= render :partial => inner_partial, :collection => messages, :as => "message" %>
</tbody>
</table>