heroku cedar에 배포 한 후 이미지가 사라집니다. app/assets/images/datatables/
에Heroku Cedar에서 Rails 3.1.3을 배포 한 후에 이미지가 흐림
:css
/* */
table.table thead .sorting { background: url('assets/datatables/sort_both.png') no-repeat center right; }
table.table thead .sorting_asc { background: url('assets/datatables/sort_asc.png') no-repeat center right; }
table.table thead .sorting_desc { background: url('assets/datatables/sort_desc.png') no-repeat center right; }
/* */
table.table thead .sorting_asc_disabled { background: url('assets/datatables/sort_asc_disabled.png') no-repeat center right; }
table.table thead .sorting_desc_disabled { background: url('assets/datatables/sort_desc_disabled.png') no-repeat center right; }
상대 PNG 로컬로 작동하지만,하지 Heroku가에 :
나는 같은 CSS를했습니다.
= asset_tag('datatables/icon.png')
...도 사용할 수 있지만 CSS 내부에서 어떻게 처리합니까?
나는 또한 config.action_dispatch.x_sendfile_header = nil
을 config/environments/production.rb
에 시도했지만 성공하지 못했습니다.
위대한 설명 fullsailor을. 감사합니다 –
이봐, 고마워. .js.coffee 파일에서이를 참조하는 비슷한 도우미가 있습니까? jQuery를 사용하여 이미지를 포함하는 html을 직접 삽입하고 URL을 사용하여 이미지를 포함하고 있으며 b/c 추가 된 해시 (Heroku)가 이미지를 표시하지 않습니다. 다시 한번 감사드립니다. – jackerman09