<h1>Listing user_profiles</h1>

<table>
  <tr>
    <th>Last name</th>
    <th>First name</th>
    <th>Gender</th>
    <th>Genre pref</th>
    <th>Bio</th>
    <th>User</th>
  </tr>

<% for user_profile in @user_profiles %>
  <tr>
    <td><%=h user_profile.last_name %></td>
    <td><%=h user_profile.first_name %></td>
    <td><%=h user_profile.gender %></td>
    <td><%=h user_profile.genre_pref %></td>
    <td><%=h user_profile.bio %></td>
    <td><%=h user_profile.user_id %></td>
    <td><%= link_to 'Show', user_profile %></td>
    <td><%= link_to 'Edit', edit_user_profile_path(user_profile) %></td>
    <td><%= link_to 'Destroy', user_profile, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New user_profile', new_user_profile_path %>
