Sha256: f09b028283dc8bf38def6750872c0ead38c45287d01f994ebfde0f382824aef8
Contents?: true
Size: 294 Bytes
Versions: 4
Compression:
Stored size: 294 Bytes
Contents
module TableHelper def table(*headers, &block) thead = content_tag(:thead) do content_tag(:tr) do headers.map{ |h| content_tag :th, h }.xss_aware_join end end rest = capture(&block) content_tag :table, thead + rest, class: 'table table-hover' end end
Version data entries
4 entries across 4 versions & 1 rubygems