You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -50,12 +50,15 @@ This gem needs to know which Bootstrap version you are using, because the navbar
50
50
51
51
If you're using either the [`bootstrap-sass`](https://github.com/twbs/bootstrap-sass) or [`bootstrap`](https://github.com/twbs/bootstrap-rubygem) gem, you're all set because the Boostrap version will be sniffed automatically from those gems' versions. Make sure to include the `bootstrap-sass` or `bootstrap` gem before `rails_bootstrap_navbar` in your Gemfile though.
52
52
53
-
If you include the Bootstrap CSS and JS some other way, you need to set the Bootstrap version when activating the extension:
53
+
However, if you include the Bootstrap CSS and JS some other way, you need to set the Bootstrap version before activating the extension:
54
54
55
55
```ruby
56
-
activate :bootstrap_navbardo |bootstrap_navbar|
57
-
bootstrap_navbar.bootstrap_version ='4.0.0'
56
+
# Only necessary if you don't use the `bootstrap-sass` or `bootstrap` gems.
0 commit comments