I have a rails application running in a subdirectory like www.domain.com/sub . The problem is that if I set the image path in my CSS, for example
/images/my_image.png
it is interrupted when I upload it to my server. I need to install
/sub/images/my_image.png
then it breaks down in my development environment. The same problem occurs in my .js files.
I read something about the rails_relative_url_root environment rails_relative_url_root , but couldn't get it working.
Can anyone help me?
Brian source share