title: When click on modal link, "b.preventDefault is not a function" appears
body: <p>I am working on Rails with haml format, and I have a table which has in the last column a button (link) that launches a modal:</p>
  
  <pre><code>= link_to('#', 'data-toggle' =&gt; 'modal', 'data-target' =&gt; '#team_modal', 'data-project' =&gt; project.id) do %span {
      class: 'glyphicon glyphicon-tasks',
      'aria-hidden' =&gt; 'true',
      'aria-hidden' =&gt; 'true',
      'data-toggle' =&gt; "tooltip",
      'title' =&gt; 'Team',
      'data-project' =&gt; project.id
  }
  </code></pre>
  
  <p>When I click on it, the modal shows up, then the following error also appears at the console:</p>
  
  <pre><code>Uncaught TypeError: b.preventDefault is not a function
   b.hide @ bootstrap.min.js?body=1:7
   b.toggle @ bootstrap.min.js?body=1:7
   (anonymous function) @ bootstrap.min.js?body=1:7
   jQuery.extend.each @ jquery.js?body=1:612
   jQuery.fn.jQuery.each @ jquery.js?body=1:242
   a.fn.modal @ bootstrap.min.js?body=1:7
   (anonymous function) @ bootstrap.min.js?body=1:7
   jQuery.event.dispatch @ jquery.js?body=1:3059
   jQuery.event.add.elemData.handle.eventHandle @ jquery.js?body=1:2677
  </code></pre>
  
  <p>How can I fix this?</p>