问题
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.
回答1:
Seems like /assets/jquery_ui/image_name.png should work,
See the answers here.
回答2:
If you just added some images to assets and it still doesn't work... you will need to restart your server (/WEBrick).
来源:https://stackoverflow.com/questions/6701010/rails-3-1-using-images-under-app-assets-images-subdirectory