title: How to use bootstrap Modal with link_to in rails?
body: <p>I had asked this earlier but unfortunately I am still stuck. I have a link_to like this</p>
  
  <pre><code>&lt;%= link_to "Click Here", page_path,, :id =&gt; 'login', "data-toggle" =&gt; "modal" %&gt;
  </code></pre>
  
  <p>in page.html.erb (the page which I want to load in modal when the link gets clicked),I have</p>
  
  <pre><code>&lt;div class="modal" id="loginModal"&gt;
      Test Content
  &lt;/div&gt;
  </code></pre>
  
  <p>in assets/page.js.coffee</p>
  
  <pre><code>$('#loginModal').modal(options)
  </code></pre>
  
  <p>but still, the link is not opening in a modal Any help ?</p>