tooltipster-rails allows easy use of Tooltipster with Rails and the asset pipeline.
Add this line to your application's Gemfile:
gem 'tooltipster-rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tooltipster-rails
In your application.js, require one of the following JavaScript files:
//= require tooltipster.bundle
//= require tooltipster.bundle.min
//= require tooltipster.main
//= require tooltipster.main.min
In your application.css, include one of the following CSS files:
*= require tooltipster.bundle
*= require tooltipster.bundle.min
*= require tooltipster.main
*= require tooltipster.main.min
If you want to use one of the included themes, include that in your application.css as well. Here's an example:
*= require tooltipster.bundle.min
*= require plugins/tooltipster/sideTip/themes/tooltipster-sideTip-light.min
Check out the Tooltipster docs for more extensive usage instructions.
Important: If you are using bootstrap you might have conflicts with the class "tooltip". It can be easily fix commenting out bootstrap/tooltip component.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request