title: Rendering partials with Rails 4 on heroku
body: <p>I'm trying to render partials in my view and it's breaking heroku, showing "We're sorry, but something went wrong".</p>
  
  <p>It's been driving me mad. I think it's something to do with the asset pipeline, hopefully someone will know what I've done wrong.</p>
  
  <p>Logs</p>
  
  <blockquote>
    <p></p>
  </blockquote>
  
  <pre><code>2013-06-23T21:46:58.711440+00:00 app[web.1]:
  &gt; ActionView::Template::Error (Missing partial static_pages/gbgsynopsis,
  &gt; application/gbgsynopsis with {:locale=&gt;[:en], :formats=&gt;[:html],
  &gt; :handlers=&gt;[:erb, :builder, :raw, :ruby, :jbuilder, :coffee]}.
  &gt; Searched in: 2013-06-23T21:46:58.711440+00:00 app[web.1]:   *
  &gt; "/app/app/views" 2013-06-23T21:46:58.711440+00:00 app[web.1]:     19: 
  &gt; &lt;%= image_tag('GBG.jpg', class: "bookcover") %&gt;
  &gt; 2013-06-23T21:46:58.711440+00:00 app[web.1]:     20:                
  &gt; &lt;/div&gt; 2013-06-23T21:46:58.711611+00:00 app[web.1]:     22:           
  &gt; &lt;%= render "gbgsynopsis" %&gt; 2013-06-23T21:46:58.711611+00:00
  &gt; app[web.1]:   app/views/static_pages/home.html.erb:22:in
  &gt; `_app_views_static_pages_home_html_erb__1233625768328599458_70301407659120' 2013-06-23T21:46:59.003669+00:00 heroku[router]: at=info method=GET
  &gt; path=/favicon.ico host=readerly.herokuapp.com fwd="86.156.197.140"
  &gt; dyno=web.1 connect=1ms service=4ms status=200 bytes=0
  </code></pre>
  
  <p>Gemfile</p>
  
  <pre><code>source 'https://rubygems.org'
  ruby '2.0.0'
  
  # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
  gem 'rails', '4.0.0.rc2'
  
  gem 'bootstrap-sass'
  
  group :development do
      gem 'sqlite3'
  end
  
  group :production do
      gem 'pg'
      gem 'rails_12factor'
  end
  </code></pre>
  
  <p>View</p>
  
  <pre><code>&lt;div class="row-fluid"&gt;
                  &lt;div class="span4"&gt;
                      &lt;%= image_tag('GBG.jpg', class: "bookcover") %&gt;
                  &lt;/div&gt;
                  &lt;div class="span8"&gt;
                      &lt;%= render "gbgsynopsis" %&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
  </code></pre>