Sha256: 53ed0ea45d39fc37cc159c0a8914f9ec58839f5520e7c307419b8829776657f0
Contents?: true
Size: 247 Bytes
Versions: 5
Compression:
Stored size: 247 Bytes
Contents
module ActiveApplication module BootstrapHelper def tab(name, id, active = false) classes = active ? ["tab", "active"] : ["tab"] content_tag(:li, link_to(name, "##{id}", "data-toggle" => "tab"), class: classes) end end end
Version data entries
5 entries across 5 versions & 1 rubygems