#2981 - An ActionView::Template::Error occurred in cards#index: undefined method `deleted' for nil:NilClass

An ActionView::Template::Error occurred in cards#index:

 undefined method `deleted' for nil:NilClass
 app/views/cards/_card_info.html.erb:24


-------------------------------
Request:
-------------------------------

 * URL        : https://bikelink.org/cards?search_terms=888444
 * HTTP Method: GET
 * IP address : 99.118.21.4
 * Parameters : {"search_terms"=>"888444", "controller"=>"cards", "action"=>"index"}
 * Timestamp  : 2022-03-10 18:17:37 UTC
 * Server : www-5.internal.bikelink.org
   * Rails root : /var/www/bikelink
 * Process: 4927

-------------------------------
Session:
-------------------------------

 * session id: [FILTERED]
 * data: {"session_id"=>"defebbcebfb4f120c32433b4353a4632",
  "warden.user.person.key"=>[[40328], "hGaiUs-YjkhjoAjqBzo1"],
  "_csrf_token"=>"36yYQibN0tLbhq7+juXYiIgRBZfh8YpQjZ8D7Fu5VPg=",
  "params_for_filter"=>
   {"filter_by_location"=>nil,
    "filter_by_owner"=>nil,
    "filter_by_state"=>2,
    "filter_by_priority"=>nil}}

-------------------------------
Backtrace:
-------------------------------

 app/views/cards/_card_info.html.erb:24
 app/views/cards/show.html.erb:6
 app/controllers/cards_controller.rb:515:in `block (2 levels) in list'
 app/controllers/cards_controller.rb:510:in `list'
 app/controllers/cards_controller.rb:433:in `index'
 app/controllers/application_controller.rb:47:in `process_action'
Reload