bootstrap-tooltip-rails Gem

bootstrap-tooltip-rails is a Ruby Gem that integrates Twitter's Bootstrap Tooltip library within the Rails Asset Pipeline.


Add to Gemfile:

gem 'bootstrap-tooltip-rails'

Bundle application to install:

bundle install


To add the .js and .css assets to the asset manifest files, run the following:

rails g bootstrap:tooltip:install

If you prefer to add the assets manually, do the following:

add the following to application.js:

//= require bootstrap/bootstrap-tooltip

add the following to application.css:

*= require bootstrap/bootstrap-tooltip


Add the following to the view or global JS include:


Additional options can be passed to tooltip() in the form of a hash as documented here.

Add rel and title properties to a link in your view like the following:

<a href="#" rel="tooltip" title="Tooltip message...">Test</a>

Other options can be


bootstrap-tooltip-rails requires a Rails application with Asset pipeline.


Copyright (c) 2012 Brandon Hilkert. See LICENSE for details.