png不是使用capistrano预编译来部署的

时间:2013-04-25 05:47:16

标签: ruby-on-rails capistrano asset-pipeline

我收到了这个错误:

ActionView::Template::Error (paanouplb_logo_navbar.png isn't precompiled):
    1: <a class="brand" href="<%= posts_path %>">
    2:   <%= image_tag asset_path('paanouplb_logo_navbar.png') %>  
    3: </a>
  app/views/shared/navbar/_brand.html.erb:2:in `_app_views_shared_navbar__brand_html_erb___4534137822881499314_42901420'
  app/views/shared/_navbar.html.erb:4:in `_app_views_shared__navbar_html_erb__3184300490266485791_40918660'
  app/views/layouts/home.html.erb:4:in `_app_views_layouts_home_html_erb___1407264114428489351_35989280'

在我的produ.rb中我已经

config.assets.compile = true

config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)

我正在通过Capistrano部署。

0 个答案:

没有答案