# How do I display an image from a rails app in another site?

**URL:** <https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889>\
**Category:** Rails\
**Created:** [April 4, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889 "2008-04-04T17:38:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 4, 2008, 5:38pm UTC](https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889/1 "2008-04-04T17:38:50Z")

</div>

I have a rails app with some images uploaded with file\_column

the url of one of the images is  
[http://soccertackle/image/image/189/supertramp-thumb.jpg](http://soccertackle/image/image/189/supertramp-thumb.jpg).  
When I type this into a browsers address bar I can see the image.  
However when I try to display this image on another site using HTML  
 ![](http://soccertackle/image/image/189/supertramp-thumb.jpg)  
no image is displayed.

does this have something to do with the public directory?

I would be very grateful if anyone can give me any advise. Thank you.

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [April 12, 2008, 11:37pm UTC](https://www.ruby-forum.com/t/how-do-i-display-an-image-from-a-rails-app-in-another-site/133889/2 "2008-04-12T23:37:09Z")

</div>

Your problem might be hotlink protection. If the server hosting the  
image sees that the HTTP referral is another site, it may ignore the  
request.
