<ul> <% @images.each do |image| %> <li><%= link_to product_image_url(image) %></li> <% end %> </ul>
def index @images = @product.images respond_with @images # if responding to /products.json end