Images

<%- @images.each do |image| -%> <%= content_tag :tr, image, :class => cycle('odd','even') do %> <% end %> <%- end -%>
<%= image.name %> <%= link_to 'Show', image_path(image) %> <%= link_to 'Edit', edit_image_path(image) %> <%= link_to 'Destroy', image_path(image), :method => :delete %>

<%= link_to 'New', new_image_path %> <%= link_to 'Back', root_path %>