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, include the JavaScript file:
//= require jquery.tooltipster.min.js
In your application.css, include the css file:
*= require tooltipster
If you want to use one of the included themes, include that in your application.css as well:
*= require tooltipster
*= require tooltipster-themes/tooltipster-light
Check out the Tooltipster docs for more extensive usage instructions.
- 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