It's strange it works on my dev environment but when I deploy it continues to link to the product ID.
I am using Rails 4.04 and the FriendlyId v5 Gem. On development when I do this:
<%= link_to image_tag(product.photos.first.image.url(:feed)), product %>
It generates a picture with a link that looks like this:
http://localhost:3000/products/my-product-slug
But when I deploy to production the same code generates
http://myprodserver.com/products/68
Why would this be happening?