<h1>User</h1>

<table class='table'>
  <thead>
    <th>Name</th>
    <th>Age</th>
    <th>Driver license</th>
    <th>Extend profile</th>
    <th>Twitter</th>
    <th>Linkedin</th>
    <th>Perferred method of contact</th>
    <th>Email</th>
    <th>Phone</th>
    
    <th colspan=3>Actions</th>
  </thead>
  <tbody>
    <% @users.each do |user| %>
      <tr>
        <td><%= user.name %></td>
        <td><%= user.age %></td>
        <td><%= user.driver_license %></td>
        <td><%= user.extend_profile %></td>
        <td><%= user.twitter %></td>
        <td><%= user.linkedin %></td>
        <td><%= user.perferred_method_of_contact %></td>
        <td><%= user.email %></td>
        <td><%= user.phone %></td>
      
        <td><%= link_to "Show", user_path(user) %></td>
        <td><%= link_to "Edit", edit_user_path(user) %></td>
        <td>
          <%= link_to "Delete", user_path(user),
            "data-turbo-method": :delete,
            "data-turbo-confirm": "Are you sure?" %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>

<br>

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