tabs_on_rails
tabs_on_rails copied to clipboard
Parameterize class of current tab
Please make the CSS class name for the active tab parameterizable. Currently the current tab is adorned with class="current" however for example bootstrap does the same with class="active".
I agree. This is something I would have done a while ago.
I'm not super great with using your gem yet...but you did add this in right?
<%= tabs_tag :open_tabs => { :class => "nav nav-tabs" }, :active_class => "active" do |tab| %>
``
The only thing I see is for some reason, it still throw's <span></span> around it & I'm wondering if that's conflicting with my bootstrap with active_class?
Is the <span> absolutely required or can we disable it?