<h1>Listing slides</h1>

<table>
  <tr>
    <th>Position</th>
    <th>Photo</th>
    <th>Slideshow</th>
  </tr>

<% for slide in @slides %>
  <tr>
    <td><%=h slide.position %></td>
    <td><%=h slide.photo_id %></td>
    <td><%=h slide.slideshow_id %></td>
    <td><%= link_to 'Show', slide %></td>
    <td><%= link_to 'Edit', edit_slide_path(slide) %></td>
    <td><%= link_to 'Destroy', slide, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New slide', new_slide_path %>
