Forum: Ruby on Rails Targeting the public/images directory?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7bd5cba5820168467074439c6a03c76b?d=identicon&s=25 Elliott Golden (elliottg)
on 2009-04-13 23:57
(Received via mailing list)
I am altering the default scaffold.css inside of public/stylesheets to
include this:

td {
/*  background-image:url(../../../public/images/product_bkgrnd1.png); /
*
/*  background-image:url(../public/images/product_bkgrnd1.png);*/
}

How do I target the file public/images/product_bkgrnd1.png so that it
will render in a View's <td> as specified in the scaffold.css.

I have tried a few different paths as you can see above, but no love
yet.

Thanks for helping out the rookie here.
Bee69cfed999cd13e3bff73d472a39ee?d=identicon&s=25 Hassan Schroeder (Guest)
on 2009-04-14 00:03
(Received via mailing list)
On Mon, Apr 13, 2009 at 2:56 PM, elliottg <x@simplecircle.net> wrote:
> How do I target the file public/images/product_bkgrnd1.png so that it
> will render in a View's <td> as specified in the scaffold.css.

td { background-image: url( "/images/product_bkgrnd1.png" ); }

HTH,
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
7bd5cba5820168467074439c6a03c76b?d=identicon&s=25 Elliott Golden (elliottg)
on 2009-04-14 00:16
(Received via mailing list)
Perfect!

Thanks a ton.

Elliott

On Apr 13, 6:02 pm, Hassan Schroeder <hassan.schroe...@gmail.com>
This topic is locked and can not be replied to.