bootstrap-ruby / middleman-bootstrap-navbar

Middleman extension to easily generate a Bootstrap navbar
http://bootstrap-ruby.github.io/middleman-bootstrap-navbar
MIT License
14 stars 2 forks source link

Bootstrap version is not configured #5

Closed GeorgeB123 closed 7 years ago

GeorgeB123 commented 7 years ago

Hey, I am using middleman 4.2.1 and middleman-bootstrap-navbar 3.0.2. I am getting the error Bootstrap version not configured when trying to run activate :bootstrap_navbar in config.rb. I have been struggling for the past day and can't figure this out. Here is my Gemfile:

gem "middleman", "~>4.2.1"

gem "middleman-livereload", "~> 3.1.0"

gem "middleman-sprockets", "~> 4.1.0"

gem 'middleman-bootstrap-navbar', "3.0.2"

gem "redcarpet", "~> 2.2.2"

gem "middleman-syntax", "~> 3.0.0"

Any help would be much appreciated.

manuelmeurer commented 7 years ago

You need to set the Bootstrap version, as described in the README.

GeorgeB123 commented 7 years ago

I still get the same error when i set activate :bootstrap_navbar do |bootstrap_navbar| bootstrap_navbar.bootstrap_version = '3.0.2' end Is there elsewhere I need to set the bootstrap version? I keep getting this error: RuntimeError: Bootstrap version is not configured. /usr/local/lib/ruby/gems/2.4.0/gems/bootstrap-navbar-2.5.0/lib/bootstrap-navbar/helpers.rb:5:in `included'

manuelmeurer commented 7 years ago

I can't recreate the problem. Can you upload a sample project where this happens to GitHub?

manuelmeurer commented 7 years ago

I'll close this for now. Feel free to reopen if you still have this problem.