title: Clicking links based on ID in with capybara
body: <p>I have two rows in a table that each have a 'Preview' button that I want to test with Capybara, but I'm struggling figuring out how to click each preview button individually. I'm new to Capybara so I'm still learning. Here's what the table looks like</p>
  
  <pre><code>&lt;tr&gt;
      &lt;td&gt;
          &lt;a data-target="#1_edit_prompt" data-toggle="modal" href="#"&gt;Cta 1&lt;/a&gt;
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
      Cta 1
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
          &lt;a data-target="#1_uses_modal" data-toggle="modal" href="#"&gt;0&lt;/a&gt;
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
      3/9/2017
      &lt;/td&gt;
      &lt;td class="actions"&gt;
          &lt;a data-target="#1_edit_prompt" data-toggle="modal" href="#"&gt;Edit&lt;/a&gt;
          &lt;a data-target="#1_delete_modal" data-toggle="modal" href="#"&gt;Delete&lt;/a&gt;
          &lt;a class="cta-preview" data-cta_id="1" href="#"&gt;Preview&lt;/a&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td&gt;
          &lt;a data-target="#2_edit_prompt" data-toggle="modal" href="#"&gt;Cta 2&lt;/a&gt;
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
          Cta 2
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
          &lt;a data-target="#2_uses_modal" data-toggle="modal" href="#"&gt;0&lt;/a&gt;
      &lt;/td&gt;
      &lt;td class="nowrap"&gt;
          3/9/2017
      &lt;/td&gt;
      &lt;td class="actions"&gt;
          &lt;a data-target="#2_edit_prompt" data-toggle="modal" href="#"&gt;Edit&lt;/a&gt;
          &lt;a data-target="#2_delete_modal" data-toggle="modal" href="#"&gt;Delete&lt;/a&gt;
          &lt;a class="cta-preview" data-cta_id="2" href="#"&gt;Preview&lt;/a&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>You can see each Preview button has the data-cta_id, which is unique to each button. I want to click a button based on that id</p>