0

I want to display my product image in a marker infowindow, but I get a broken link error:

qmxjai8cmuuve5mnpf4y.jpg:1
GET localhost:3000/v1503135294/qmxjai8cmuuve5mnpf4y.jpg 404 (Not Found)

I don't know how to include a cloudinary link in my 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 I display it in my view:

<%= cl_image_tag user.photo.path, height: 100, width: 200 %>
trincot
  • 317,000
  • 35
  • 244
  • 286
Wako
  • 140
  • 1
  • 15

0 Answers0