Provides an accordion helper and a tabs helper
In your Gemfile:
gem 'bootstrap-components-helpers', :git => 'git://gist.github.com/2117187.git'
= accordion do |accordion|
  = accordion.pane 'My first pane' do
    = render partial: 'my_first_pane'
  = accordion.pane 'My second pane' do
    = render partial: 'my_second_pane'
accordion method options :
- :accordion_id: when you want more than one accordion on the same page.
- :open: when you want the first pane to be open on load.
= tabs do |tabs|
  - tabs.pane 'My first pane' do
    = render partial: 'my_first_pane'
  - tabs.pane 'My second pane' do
    = render partial: 'my_second_pane'
tabs method options :
- :direction: to control the positioning of the tabs. Valid values are- below,- left,- rightand- above(default is- above).
- :style:- tabsor- pills(default is- tabs).
Hi, great code... thanks for sharing.
I am writing this comment in lieu of a pull request, since gists don't yet support pull requests.
I forked a forked copy of your repo and added the ability for users to specify the selected tab by passing an :active option. The person I forked it from added a similar feature, allowing users to specify the open accordion pane.
Please consider pulling in our simple additions.
https://gist.github.com/calebhaye/5105757