Fix broken account layout
Closed this issue · 0 comments
stevepolitodesign commented
We just need to wrap the markup in a loop.
<% @active_sessions.each do |active_session| %>
<tr>
<td><%= active_session.user_agent %></td>
<td><%= active_session.ip_address %></td>
<td><%= active_session.created_at %></td>
<td><%= button_to "Sign Out", active_session_path(active_session), method: :delete %></td>
</tr>
<% end %>