title: How to add bootstrap modal with link_to so the link content open in modal ?
body: <p>I am trying to use bootstrap modal <a href="http://twitter.github.com/bootstrap/javascript.html#modals" rel="noreferrer">http://twitter.github.com/bootstrap/javascript.html#modals</a> on a rails link to open that link in the modal </p>
  
  <pre><code>&lt;%= link_to page_path, target: '_blank' %&gt;
  </code></pre>
  
  <p>but somehow it is not working. The standard toggle code is -  </p>
  
  <pre><code>&lt;a data-toggle="modal" href="#myModal" class="btn"&gt;Launch demo modal&lt;/a&gt;
  </code></pre>
  
  <p>but I am not sure how to apply it to link_to in rails, any help ?</p>
  
  <p>Thanks</p>