When deploying with capistrano to my VPS, I get the following error in my 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"
):
If I ls app/views/application then I see this _nav_bar.html.slim as expected. Why would the rendering of this partial work locally but not in production?
Where do you have the slim-rails gem in your gemfile?
Based on your error message, there is no handler for slim templated files.
I’d guess that you have slim-rails inside either the assets group, or the development group in your gemfile. Just move it out of those groups into the main part of the gemfile and re-bundle your application. This will get it to install properly in the production environment.