I have a possibly dumb question.
In my template, I reference the images folder by “…/images/foo.jpg”.
This works with all my pages that are two levels - i.e. this works for
example with “…/items/list” page.
However, when I go one level deeper, for example “…/items/show/235”
page, this doesn’t work, because images need to be referenced by
Is there a quick and elegant Rails-like solution to this? Can I do
something like “~/images/foo.jpg” (it has to work both on Windows, where
I’m developing this, and Linux, where this is going to be deployed)? I
really don’t want to refer to all images by their absolute path…