ruby on rails - Product image in gmap4rails infowindow with cloudinary -
i want display product image in marker infowindow, broken link error:
qmxjai8cmuuve5mnpf4y.jpg:1
localhost:3000/v1503135294/qmxjai8cmuuve5mnpf4y.jpg 404 (not found)
i don't know how include cloudinary link in infowindow.
my infowindow:
def gmaps4rails_infowindow(bien) " <div class='col-xs-6'> <a href='#{user_path(product.user)}', class='btn btn-fill btn-danger btn-sm'>accéder au profil</a> </div> <img src=\"#{product.user.photo.path}\" style='width: 200px; height: auto; margin: 10px; border-radius: 5px; text-align: center;'> " end how display in view:
<%= cl_image_tag user.photo.path, height: 100, width: 200 %>
Comments
Post a Comment