1

我收到此错误:

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'

在我的 production.rb 我已经有了

config.assets.compile = true

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

我正在通过 Capistrano 进行部署。

4

0 回答 0