no procesar la fila el array está vacío
This commit is contained in:
parent
c287ec649a
commit
cc06bcc385
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue