Got abilities working on index; next need to separate users from members from cards.

This commit is contained in:
2012-09-15 18:41:55 -07:00
parent 0bc5858101
commit 93e77b692f
7 changed files with 18 additions and 19 deletions

View File

@@ -12,8 +12,9 @@
<th></th>
<th></th>
</tr>
<% @users.each do |user| %>
<% if !@users.blank? %>
<% @users.each do |user| %>
<tr>
<td><%= user.name %></td>
<td><%= user.card_id %></td>
@@ -23,6 +24,7 @@
<td><%= link_to 'Edit', edit_user_path(user) %></td>
<td><%= link_to 'Destroy', user, :confirm => 'Are you sure?', :method => :delete %></td>
</tr>
<% end %>
<% end %>
</table>