From 7e80d41b5e6f03a747199598316edc4fdc1892d1 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 31 Jan 2022 14:30:39 -0500 Subject: [PATCH] don't show table when there are no players --- app/views/players/index.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/players/index.html.erb b/app/views/players/index.html.erb index a635ded..5ab8e81 100644 --- a/app/views/players/index.html.erb +++ b/app/views/players/index.html.erb @@ -2,6 +2,7 @@

Players

+<% if @players.any? %>
@@ -27,6 +28,7 @@
+<% end %>

<%= pluralize(@players.count, 'total player') %>