Access Cards

<%= link_to 'New Card', new_card_path if can? :create, Card %> <%= link_to 'Upload all cards', upload_all_path if can? :upload_all, Card %> <% if !@cards.blank? %> <% @cards.each do |card| %> <% end %> <% end %>
User Note DB ID Card # Access?
<%= card.user.name %> <%= card.name %> <%= card.id %> <%= card.card_number %> <%= if card.card_permissions == 1 then "Access" end %> <%= link_to 'Upload', upload_path(card) if can? :upload, card %> <%= link_to 'Edit', edit_card_path(card) if can? :update, card %> <%= link_to 'Destroy', card, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE CARD FROM THE DOOR SYSTEM! DISABLE AND UPLOAD IT FIRST.', :method => :delete if can? :destroy, card %>