<div class="pure-u-1 tiles">
  <% images.each do |image| %>
    <div class="tile">
      <%= edit_mode_checkbox(image) %>

      <%= link_to image_path(image), class: 'pure-hidden-tablet pure-hidden-desktop small-img' do %>
        <%= image_tag(image.file.url(:thumb)) %>
      <% end %>

      <%= link_to image_path(image), class: 'pure-hidden-phone' do %>
        <%= image_tag(image.file.url(:thumb)) %>
      <% end %>
    </div>
  <% end %>
</div>
<div class="pure-u-1 tiles">
  <% images.each do |image| %>
    <div class="tile" id="tile_<%= image.key %>">
      <%= edit_mode_checkbox(image) %>

      <%= link_to image_path(image), class: 'pure-hidden-tablet pure-hidden-desktop small-img' do %>
        <%= image_tag(image.file.url(:thumb)) %>
      <% end %>

      <%= link_to image_path(image), class: 'pure-hidden-phone' do %>
        <%= image_tag(image.file.url(:thumb)) %>
      <% end %>
    </div>
  <% end %>
</div>
Add an id to make my capybara life a lot easier
Add an id to make my capybara life a lot easier
