Hi, below is the ruby script to show all the photos of a product.
Now I want to showing all the photos apart from the first one
it mean if got 5 photos for this product, it will show 2-5 photos, not
the first one.
<% product.images.each do |image| %>
<%= image_tag(image.image.url(‘120x90’, :jpg)) %>
<% end %>
I tried to change it to this:
<% product.images.each do |image[1]| %>
<%= image_tag(image.image.url(‘120x90’, :jpg)) %>
<% end %>
but doesn’t work, any one can advice please.