Created
August 11, 2016 07:16
-
-
Save matiaskorhonen/58d5caf9d50a4d4b7f787d5d55fb2b28 to your computer and use it in GitHub Desktop.
Bootstrap v4 navbar tabs_on_rails tab builder
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
👍
Thanks for this. I was trying to figure out the best way to integrate
tabs_on_rails
with Bootstrap 4'snavbar
classes, specifically adding thenav-link
class to the link elements inside theli
s.After comparing what you have to the
tabs_on_rails
source, I've made some changes to what I am using and thought I should share.I wasn't sure where to put the custom tab builder file. With supporting opinions from
tabs_on_rails
issue #10 andtabs_on_rails
issue #19, ultimately I decided that it lives inapp/helpers/tabs_helper.rb
:Implemented thusly (in
app/views/application/_header.slim
):