title: Rails display two modals from same view
body: <p>I have a Rails view with two icons.  Each icon should open a different modal (using a partial).</p>
  
  <p>The issue is that both icons are opening the same modal (the first one).</p>
  
  <p>Here is the code to display the modals:</p>
  
  <pre><code>&lt;a data-toggle="modal" href="#workorder-&lt;%= workorder.id %&gt;"&gt;
    &lt;i class="icon-list"&gt;&lt;/i&gt;&lt;%= workorder.wologs.count %&gt;
    &lt;%= render :partial =&gt; "wologs/history", locals: {workorder: workorder} %&gt;
  &lt;/a&gt;
  &lt;a data-toggle="modal" href="#workorder-&lt;%= workorder.id %&gt;"&gt;
    &lt;i class="icon-ok-sign"&gt;&lt;/i&gt;&lt;%= workorder.tasks.count %&gt;&lt;/a&gt;
    &lt;%= render :partial =&gt; "tasks/taskslist", locals: {workorder: workorder} %&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>Thanks for the help!</p>