<table class="table">
<thead>
<tr>
<th scope="col">
<%= Session.human_attribute_name :logged_at %>
</th>
<%= Session.human_attribute_name :ip_address %>
<%= Session.human_attribute_name :user_agent %>
</tr>
</thead>
<tbody>
<% sessions.each do |session| %>
<td><%= localize session.logged_at, format: :long %></td>
<td><%= session.ip_address %></td>
<td><%= truncate session.user_agent, length: 40 %></td>
<% end %>
</tbody>
</table>