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