Skip to content

Commit 9508887

Browse files
committed
fix readme
1 parent 4d13c81 commit 9508887

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,15 @@ This gem needs to know which Bootstrap version you are using, because the navbar
5050

5151
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.
5252

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:
5454

5555
```ruby
56-
activate :bootstrap_navbar do |bootstrap_navbar|
57-
bootstrap_navbar.bootstrap_version = '4.0.0'
56+
# Only necessary if you don't use the `bootstrap-sass` or `bootstrap` gems.
57+
::BootstrapNavbar.configure do |config|
58+
config.bootstrap_version = '4.0.0'
5859
end
60+
61+
activate :bootstrap_navbar
5962
```
6063

6164
### Output HTML

0 commit comments

Comments
 (0)