I\'m trying to get the background image to change every 6 seconds and it\'s always a 404 error:
For example, the below appears in the JS console
htt
This solved my problem: Section 2.3.1 of guides.rubyonrails.org/asset_pipeline.html
$('.holder').css("background-image","url(<%= asset_path('tree-rays.jpg') %>)");
Note that tree-rays.jpg is in app/assets/images (Rails 4 Application).
tree-rays.jpg