我以爲自己的資產管道已經解決了,但沒有了。file.png沒有預編譯
我有一個名爲clients.css.scss
.client
{
.list_view
{
width: 650px;
height: 500px;
overflow: auto;
table
{
width: 650px;
border: solid 2px #999999;
border-collapse: collapse;
thead tr
{
background: image-url('list-view-header.png') repeat-x;
}
thead tr:first-child
{
background-image: none;
}
}
}
}
每次我試圖預編譯它在生產中我不斷收到一個「file.png不預編譯」錯誤樣式表。
bundle exec rake assets:precompile RAILS_ENV=production --trace
/usr/local/rvm/gems/[email protected]/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/usr/local/rvm/gems/[email protected]/gems/rack-1.3.4/lib/rack/backports/uri/common_192.rb:53: warning: already initialized constant WFKV_
rake aborted!
list-view-header.png isn't precompiled
(in /var/rails/pm.onlinetherapy.com/app/assets/stylesheets/clients.css.scss.erb)
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
圖像文件位於app/assets/images目錄中,我可以在擴展指紋名稱的public/assets目錄中看到它。
任何想法都會有所幫助。
請[請勿將簽名或標語添加到您的帖子中](http://stackoverflow.com/faq#signatures)。 – meagar