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

Version Path
active_application-0.3.1 app/helpers/active_application/bootstrap_helper.rb
active_application-0.3.0 app/helpers/active_application/bootstrap_helper.rb
active_application-0.2.0 app/helpers/active_application/bootstrap_helper.rb
active_application-0.1.0 app/helpers/active_application/bootstrap_helper.rb
active_application-0.0.1 app/helpers/active_application/bootstrap_helper.rb