내 애플리케이션에서 jquery masonry 스크립트를로드하려고하는데 작동하지 않습니다.리소스를로드하지 못했습니다. 서버가 Rails 3 프로젝트에서 404 상태 오류로 응답했습니다.
No route matches [GET] "/Users/fkhalid2008/loand/app/assets/javascripts/jquery.masonry.min.js"
내가 뭐하는 거지 :
Failed to load resource: the server responded with a http://localhost:3000/app/assets/javascripts/jquery.masonry.min.js status of 404 (Not Found)
내가 링크 http://localhost:3000/app/assets/javascripts/jquery.masonry.min.js를 통해 브라우저에서 직접 스크립트를 액세스하려고하면 나는이 오류가 발생합니다 :
디버깅시,이 오류가 표시 여기서 뭐라구?
아래에 관련 코드가 첨부되어 있습니다.
감사합니다,
파이
게시물> INDEX.HTML.ERB
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="/app/assets/javascripts/jquery.masonry.min.js">
</script>
.....
<script type="text/javascript">
$('#container').masonry({
itemSelector: '.box',
columnWidth : 120
});
</script>
APPLICATION.JS을 (이것은 내가 JQuery와 벽돌 스크립트를로드하려고 곳이다) 파일
제안 된 변경 사항을 적용한 후 'Uncaught ReferenceError : jQuery is 정의되지 않았습니다. "Masonry.js – hikmatyar
ok를 참조하여 jquery.js를 추가하여 참조 오류를 수정했습니다. – hikmatyar
기꺼이 도와 드리겠습니다. :) –