# Test Server Problem Displaying Images

**URL:** <https://www.ruby-forum.com/t/test-server-problem-displaying-images/70457>\
**Category:** Rails\
**Created:** [September 29, 2006, 10:31am UTC](https://www.ruby-forum.com/t/test-server-problem-displaying-images/70457 "2006-09-29T10:31:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybutler7](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8491ac/32.png) [@johnnybutler7](https://www.ruby-forum.com/u/johnnybutler7)\
**Post date:** [September 29, 2006, 10:31am UTC](https://www.ruby-forum.com/t/test-server-problem-displaying-images/70457/1 "2006-09-29T10:31:34Z")

</div>

Hi,

Ive developed my app locally using webrick and everything works fine.  
Ive uploaded the site to a test server which contains a number of test  
websites.

in my routes.rb i have the follwoing set up:

map.connect ‘:action/’, :controller =\> ‘main’

map.connect ‘:controller/:action/:id’

now this works fine so if i type ipaddress/testwebsite1/about\_us into  
the address bar it works fine and i get the about\_us page with expected  
text images.

ive checked the properties of 1 of the images on this page and its  
location is: ipaddress/root/testwebsite1/images which is correct.

This app also contains an admin section so if i type into the address  
bar ipaddress/testwebsite1/admin/articles/list the correct page is  
displayed with the correct information but the images that are on that  
page cannot be viewed.

Ive checked the properties of the same image on this page and its  
looking for it in the root:

ipaddress/root/images which is incorrect it should be:  
ipaddress/root/testwebsite1/images

Can anyone advise on how to set up the rooting so if a request comes in  
for admin then it looks in correct place for images etc?

Another problem i dont know if it is related is i use a CSS style sheet  
to display a list with arrows instead of the bullets:

ul.contentslist li {  
padding-bottom: 12px;  
list-style-image: url(/images/arrow.gif);  
}

the above doesnt show the arrow for the bullets it shoes the default  
circle but if i put the below … in front of the url they show up fine.  
How can this be fixed as i dont want to have to keep changing when  
switching from development to testing to production.

ul.contentslist li {  
padding-bottom: 12px;  
list-style-image: url(…/images/arrow.gif);  
}

Any advice appreciated.

JB
