Your web app generally maps to the Rails public folder.
You can make absolute references to your images using
/images/image_name.gif from your views. This also applies to
respectively. Of course you can use relative references, but I've found
the safest bet to be absolute.