LanguagesNamedAfterCofee
LanguagesNamedAfterCofee

Reputation: 5952

Rails 3.1 using images under app/assets/images/subdirectory

In my Rails 3.1 app, I have images stored under app/assets/images/jquery_ui/.

I don't know how to access these in my CSS. /assets/image_name.png and /assets/jquery_ui/image_name.png do not work.

Upvotes: 7

Views: 8193

Answers (2)

valk
valk

Reputation: 9894

If you just added some images to assets and it still doesn't work... you will need to restart your server (/WEBrick).

Upvotes: 0

ipd
ipd

Reputation: 5714

Seems like /assets/jquery_ui/image_name.png should work,

See the answers here.

Upvotes: 9

Related Questions