From b90d401155f7889421bc50a55e235be7ff692d17 Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Sat, 21 Apr 2018 23:49:43 +0200 Subject: [PATCH] fix @pp.nil bug --- app/views/ps_admin/home/index.html.erb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/views/ps_admin/home/index.html.erb b/app/views/ps_admin/home/index.html.erb index 12ab4a7..260141f 100644 --- a/app/views/ps_admin/home/index.html.erb +++ b/app/views/ps_admin/home/index.html.erb @@ -7,9 +7,8 @@
-

<%= @pp.number_of_views %>

- -

Najwięcej wyświetleń:
<%= @pp.name %>

+

<%= @pp.blank? ? '-' : @pp.number_of_views %>

+

Najwięcej wyświetleń:
<%= @pp.blank? ? 'Brak' : @pp.name %>