accessing images in the /public directory..

i am taking a style that someone else put together, and have a simple question..

the page is currently buried in the site, along with its images.. i moved the images to /public/images

the only problem i have is..

how do i access those files in this case...

<div id="headerTop" style="background:url('images/header_bg.gif'); height:60px;">

how do i encode the style attribute to access the images directory in the public directory?

thanks!

i am taking a style that someone else put together, and have a simple question..

the page is currently buried in the site, along with its images.. i moved the images to /public/images

the only problem i have is..

how do i access those files in this case...

<div id="headerTop" style="background:url('images/header_bg.gif'); height:60px;">

background:url('/images/header_bg.gif'); Note the initial / to make the path from your document root absolute.

how do i encode the style attribute to access the images directory in the public directory?

thanks! --
Posted via http://www.ruby-forum.com/.

>

Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com

Rob Biedenharn wrote:

i got called in to put the guts into a design done by a college kid who 'knows computers'..