Listing users

<%= link_to 'New User', new_user_path %> <%= link_to 'Upload all users', upload_all_path %> <% if !@users.blank? %> <% @users.each do |user| %> <% end %> <% end %>
Name Card DB ID Card # Access? Admin?
<%= user.name %> <%= user.card_id %> <%= user.card_number %> <%= if user.card_permissions == 1 then "Access" end %> <%= if user.admin? then "Admin" end %> <%= link_to 'Upload', upload_path(user) %> <%= link_to 'Edit', edit_user_path(user) %> <%= link_to 'Destroy', user, :confirm => 'Are you sure? WARNING: THIS DOES NOT REMOVE THE USER FROM THE DOOR SYSTEM! DISABLE THEM FIRST.', :method => :delete %>