Rails-bootstrap-navbar

Easily generate a Twitter Bootstrap navbar in Rails

View the Project on GitHub bootstrap-ruby/rails-bootstrap-navbar

Rails Bootstrap Navbar

Gem Version Build Status Dependency Status Code Climate

Easily generate a Twitter Bootstrap navbar in your Rails app

Installation

Add this line to your application's Gemfile:

gem 'rails_bootstrap_navbar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rails_bootstrap_navbar

Requirements

The necessary files from Bootstrap >= 2.0 have to be included separately, they are not part of this gem.

At least the CSS files for the navbar are required, and the JS files for dropdowns and responsive features, if you want to use those in the navbar.

Usage

The gem bootstrap-navbar is used to generate the HTML. Please refer to the gem's README and the following Wiki entries for detailed instructions on how to generate the navbar:

Usage with Bootstrap 2.x

Usage with Bootstrap 3.x

Acknowledgements

Thanks to Jules Copeland for the initial version of this gem!

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request