On Oct 16, 2009, at 2:52 PM, Sergio Ruiz wrote:
> 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
[email protected]




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to