From e630c81298e6b2f09adb23b2192bd220c88ee92e Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Thu, 14 Feb 2013 23:00:01 -0700 Subject: [PATCH] Resolving nil error for access cards / logs --- app/views/cards/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cards/index.html.erb b/app/views/cards/index.html.erb index 7ea1368..239c920 100644 --- a/app/views/cards/index.html.erb +++ b/app/views/cards/index.html.erb @@ -4,7 +4,7 @@ <%= link_to 'Upload all cards', upload_all_path if can? :upload_all, Card %> <%= link_to 'Door Logs', door_logs_path if can? :read, DoorLog %>

-Most Active Card Last 7 Days: <%= @most_active_card.name %> (<%= @most_active_card.accesses_this_week %> times) +Most Active Card Last 7 Days: <%= @most_active_card.name unless @most_active_card.blank? %> (<%= @most_active_card.accesses_this_week unless @most_active_card.blank? %> times)