# Reg routing

**URL:** <https://www.ruby-forum.com/t/reg-routing/131130>\
**Category:** Rails\
**Created:** [March 6, 2008, 10:04am UTC](https://www.ruby-forum.com/t/reg-routing/131130 "2008-03-06T10:04:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shiva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@shiva](https://www.ruby-forum.com/u/shiva)\
**Post date:** [March 6, 2008, 10:04am UTC](https://www.ruby-forum.com/t/reg-routing/131130/1 "2008-03-06T10:04:51Z")

</div>

Hi  
In my application all my images are in the outside of public  
folder.so i want to access that folder and i want to display image

Eg:

```
 Myapp
   |->app
      config
      db
      .
      .
      .
      public
      .
      .
      myapp_image
            |-> images
                   |-> abc.jpg

```

so this is my folder structure i want to acces abc.jpg…if any one  
knows how to access pls help me

with regrds  
shiva

---

<div class="post-metadata">

**Author:** ![shiva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@shiva](https://www.ruby-forum.com/u/shiva)\
**Post date:** [March 6, 2008, 10:19am UTC](https://www.ruby-forum.com/t/reg-routing/131130/2 "2008-03-06T10:19:56Z")

</div>

you would use:  
image\_tag("…/myapp\_image/images/abc.jpg")

the … to get one up from the default path /public  
but it’s no good way to have your folder structure that way  
images should go in a folder below public like:  
/public/images  
and be accessed with:  
image\_tag("/images/abc.jpg")

---

<div class="post-metadata">

**Author:** ![shiva](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/85e7bf/32.png) [@shiva](https://www.ruby-forum.com/u/shiva)\
**Post date:** [March 6, 2008, 11:55am UTC](https://www.ruby-forum.com/t/reg-routing/131130/3 "2008-03-06T11:55:03Z")

</div>

Thorsten M. wrote:

> you would use:  
> image\_tag("…/myapp\_image/images/abc.jpg")
> 
> the … to get one up from the default path /public  
> but it’s no good way to have your folder structure that way  
> images should go in a folder below public like:  
> /public/images  
> and be accessed with:  
> image\_tag("/images/abc.jpg")

thanks for your reply

but it is not working.
