使用 capistrano 部署到我的 VPS 时,我的 production.log 中出现以下错误:
ActionView::Template::Error (Missing partial application/nav_bar with {:locale=>[:en], :formats=>[:html], :handlers=>[:erb, :builder, :jbuilder, :mustache]}. Searched in:
* "/home/deployer/apps/feed_engine/releases/20120515125611/app/views"
* "/home/deployer/apps/feed_engine/shared/bundle/ruby/1.9.1/gems/kaminari-0.13.0/app/views"
* "/home/deployer/apps/feed_engine/shared/bundle/ruby/1.9.1/gems/devise-2.0.4/app/views"
):
如果我ls app/views/application
那么我_nav_bar.html.slim
会按预期看到这一点。为什么这部分的渲染会在本地工作而不是在生产中工作?