Skip to content

Instantly share code, notes, and snippets.

@courtneyphillips
Last active March 15, 2016 17:21
Show Gist options
  • Save courtneyphillips/c7a21c2e9ab734b17959 to your computer and use it in GitHub Desktop.
Save courtneyphillips/c7a21c2e9ab734b17959 to your computer and use it in GitHub Desktop.
Bootstrap popovers in Rails
gem 'bootstrap-tooltip-rails'
//ADDITIONAL OPTIONS & DOCUMENTATION
http://getbootstrap.com/javascript/#popovers
<a title="Popover Title Here" href="#" rel="popover" data-content="Here's the content of the popover!" data-trigger="hover">test with html</a>
<script>$(function () {
$('[data-toggle="popover"]').popover()
})</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment