Cheat Sheet: relative URL of asset in Rails

Posted . Visible to the public.

once and for all:
real path as it is shown in Git:

app/assets/images/all/the/subfolders/my_image.jpg

Headache-causing path as Rails uses it:

/assets/all/the/subfolders/my_image.jpg

To whom this makes sense: feel free to explain it to me >_<

Posted by Philipp Antar to Distribusion IT (2013-11-29 09:16)