Rail 4.2.1. :
body
{
background: #EFEFEF image-url('layouts/background.jpg') no-repeat top center fixed;
}
SASS :
body
{
background: #EFEFEF url('/images/layouts/background.jpg') no-repeat top center fixed;
}
, , ββ! , , , layout, layouts.
, url(/assets/layout/background.jpg) , .
12NOV2015
, image_tag(). ( ), ".png" . , , -, . ".png" , image_tag() .
This is ridiculous. Not sure why it is returning to some non-standard path ( /imagesinstead /assets) instead of throwing an exception (but I also did not bother to look at the source).
source
share