Module: ActiveApplication::BootstrapHelper

Defined in:
app/helpers/active_application/bootstrap_helper.rb

Instance Method Summary collapse

Instance Method Details

#tab(name, id, active = false) ⇒ Object



3
4
5
6
# File 'app/helpers/active_application/bootstrap_helper.rb', line 3

def tab(name, id, active = false)
  classes = active ? ["tab", "active"] : ["tab"]
  (:li, link_to(name, "##{id}", "data-toggle" => "tab"), class: classes)
end