I have a rails 4.0 site using bootstrap 3.0. The tooltip is displaying but with no style. The bootstrap example shows that the markup will look like this
<div class="tooltip">
<div class="tooltip-inner">
</div>
<div class="tooltip-arrow"></div>
</div>
However when I inspect it, the markup generated looks like it is jQuery not bootstrap.
<div id="ui-tooltip-18 role="tooltip" class="ui-tooltip ui-widget ui-corner-all ui-widget-content">
</div>
Here is my application.js
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require twitter/bootstrap
//= require_tree .
Here is my JavaScript calling the tooltip
$(function(){
$('[data-toggle=tooltip]').tooltip();
});
Here is my markup on the page:
<h3>Verifications</h3>
<table>
<% @verification_types.each do |type| %>
<tr>
<td><%= link_to "#{type.name}", '#', data: { toggle: "tooltip" }, title: "Default title" %></td>
</tr>
<% end %>
</table>