From cc06bcc3854f0cd51c346da805e5a72df9393369 Mon Sep 17 00:00:00 2001 From: f Date: Wed, 27 Jun 2018 20:13:47 -0300 Subject: [PATCH] =?UTF-8?q?no=20procesar=20la=20fila=20el=20array=20est?= =?UTF-8?q?=C3=A1=20vac=C3=ADo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/show.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/show.haml b/app/views/posts/show.haml index b32b989..70d1321 100644 --- a/app/views/posts/show.haml +++ b/app/views/posts/show.haml @@ -46,7 +46,7 @@ %table %thead %tr - - data.first.keys.each do |k| + - !data.empty? && data.first.keys.each do |k| %th= k.humanize %tbody - data.each do |r|