app/views/users/index.html.erb
<div class="padding-right">
<h1>All Users</h1>
<table>
<tr>
<th>Email</th>
<th>Projects</th>
<th></th>
</tr>
<% @users.each do |user| %>
<tr>
<td><%= user.email %></td>
<td>
<% user.projects.each do |project| %>
<span><%= project.title %>, </span>
<% end %>
</td>
<td><%= link_to "Delete", user_registration_path, method: :delete, data: { confirm: "Are you sure?" } %></td>
</tr>
<% end %>
</table>
</div>