5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-26 14:56:22 +00:00

renderizar la tabla como texto plano

This commit is contained in:
f 2021-04-07 17:47:58 -03:00
parent 1d8e04dbb1
commit b60dff4df4

View file

@ -2,7 +2,9 @@
<% @data.dig(:params, 'errors')&.each do |error| %>
# <%= error['type'] %>: <%= error['message'] %>
<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values) %>
```
<%= Terminal::Table.new headings: error['backtrace'].first.keys, rows: error['backtrace'].map(&:values).map(&:strip) %>
```
<% end %>