# Image\_tag for images outside of application

**URL:** <https://www.ruby-forum.com/t/image-tag-for-images-outside-of-application/148503>\
**Category:** Rails\
**Created:** [September 13, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/image-tag-for-images-outside-of-application/148503 "2008-09-13T19:53:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pepe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@pepe](https://www.ruby-forum.com/u/pepe)\
**Post date:** [September 13, 2008, 7:53pm UTC](https://www.ruby-forum.com/t/image-tag-for-images-outside-of-application/148503/1 "2008-09-13T19:53:43Z")

</div>

Hello.

I’m writing an application that uses images stored in the same server  
but outside of the application directory. I have tried many things but  
nothing worked and found nothing really useful anywhere.

What can I do so the image\_tag helper finds the images I need?

Thanks a lot.

Pepe

---

<div class="post-metadata">

**Author:** ![pepe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@pepe](https://www.ruby-forum.com/u/pepe)\
**Post date:** [September 14, 2008, 1:33am UTC](https://www.ruby-forum.com/t/image-tag-for-images-outside-of-application/148503/2 "2008-09-14T01:33:50Z")

</div>

By default only the public directory is exposed to the web. If you  
have content living outside of this place you to somehow expose it in  
the web scope. You might make a symlink, or make a other virtual host  
for the images and designate this with asset\_host.

Christian

---

<div class="post-metadata">

**Author:** ![pepe](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/4da419/32.png) [@pepe](https://www.ruby-forum.com/u/pepe)\
**Post date:** [September 14, 2008, 2:02am UTC](https://www.ruby-forum.com/t/image-tag-for-images-outside-of-application/148503/3 "2008-09-14T02:02:29Z")

</div>

Thanks for the tip. I just tried it but unfortunately I got:

the symlink() function is unimplemented on this machine

I’m working on a Windows machine.

Thanks anyway.
