Basis of rails driven photo website with a Flash uploader
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

19 lines
468 B

  1. <% title "Photos" %>
  2. <table>
  3. <tr>
  4. <th>Path</th>
  5. <th>Url</th>
  6. </tr>
  7. <% for photo in @photos %>
  8. <tr>
  9. <td><%=h photo.path %></td>
  10. <td><%=h photo.url %></td>
  11. <td><%= link_to "Show", photo %></td>
  12. <td><%= link_to "Edit", edit_photo_path(photo) %></td>
  13. <td><%= link_to "Destroy", photo, :confirm => 'Are you sure?', :method => :delete %></td>
  14. </tr>
  15. <% end %>
  16. </table>
  17. <p><%= link_to "New Photo", new_photo_path %></p>