<h1>Listing users</h1>

<table>
  <tr>
    <th>Email</th>
    <th>Age</th>
  </tr>
  
<% for user in @users %>
  <tr>
    <td><%=h user.email %></td>
    <td><%=h user.age %></td>
    <td><%= link_to 'Show', user_path(user) %></td>
    <td><%= link_to 'Edit', edit_user_path(user) %></td>
    <td><%= link_to 'Destroy', user_path(user), :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user', new_user_path %>