Re: css image url's and :img problem

2007-11-17 Thread John Beppu
On Nov 17, 2007 8:10 PM, pedro mg <[EMAIL PROTECTED]> wrote:

>
> background: #33 url(img01.gif) repeat-x;
>

url(/static/img01.gif)

?
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

css image url's and :img problem

2007-11-17 Thread pedro mg
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: #33 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

___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list