私のassets/javascriptに次のjsがあります
jQuery ->
if $('.pagination').length
$(window).scroll ->
url = $('.pagination .next_page').attr('href')
if url && $(window).scrollTop() > $(document).height() - $(window).height() - 50
$('.pagination').html('<img src="images/spinner.gif" />')
$.getScript(url)
$(window).scroll()
ここでスピナーアニメーションを呼び出していますが、ローカルホストでフェッチされていません。
No route matches [GET] "/images/spinner.gif"
私はすでに走った
rake assets:precompile:all RAILS_ENV=development
そして私の画像はアセット/画像(そして公開)に適切に配置されているので、これは私がこの画像を呼び出す方法が間違っているに違いないと私に思わせます。