-
Notifications
You must be signed in to change notification settings - Fork 13
Bootstrap version is not configured (Runtime Error) #14
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Do you have two navbar gems loading? What's in your Gemfile.lock? |
Hey @jroof88, Thanks for mentioning this! It wasn't explained properly in the readme. You have two options:
# config/initializers/rails-bootstrap-navbar.rb
BootstrapNavbar.configure do |config|
config.bootstrap_version = '4.0.0'
end |
Thanks @manuelmeurer! Works great now! |
@manuelmeurer If I am using bootstrap 4.0.0 and following the wiki for Boostrap 3.x should it work the same? |
No, not really. The navbar was simplified a lot in Bootstrap 4. This should work:
Check the source for all available options to the methods. I'll add full examples to the wiki page soon... 😄 |
Thanks got it all figured. Great gem! |
Hello,
I am new to Rails and Gems so this may have an easy answer but when I follow the instructions to use this gem. I have this in my gemfile:
gem 'rails_bootstrap_navbar'
And then when try to run the server I get the error:
/usr/local/lib/ruby/gems/2.3.0/gems/bootstrap-navbar-2.3.0/lib/bootstrap-navbar/helpers.rb:9:in included: Bootstrap version is not configured. (RuntimeError)
I tried configuring the Bootstrap version using the instructions from bootstrap-navbar but still no luck. Any help would be greatly appreciated!
Thanks!
The text was updated successfully, but these errors were encountered: