css image url's and img problem
pedro mg
seti at tquadrado.com
Sun Nov 18 11:56:56 EST 2007
2nd post... the first didnt got here ?
======================================
Hi,
i have this controller class to serve static files. It works well for
the stylesheet file under a /static directory, locating it, but the
images referenced in the stylesheet do not appear. They are in the
same /static folder, next to the stylesheet.css file.
link :rel => 'stylesheet', :href => R(Static, 'stylesheet.css'), :type
=> 'text/css'
In the CSS file i try:
background: #333333 url(img01.gif) repeat-x;
The class is here: http://pastebin.com/f7c92f95a
Another problem is for images, i cant seem to make them appear in the
page using:
img :src => R(Static, 'img04.jpg'), :alt => 'test image'
I always get the alternate description (or a thumb is no :alt is
supplied).
Any hint ? Thank you.
--
pedro mg
More information about the Camping-list
mailing list