title: Rails 4: partial w/ locals works in one place but not another...why?
body: <p>How to fix?</p>
  
  <p>Renders jobs properly...   </p>
  
  <pre><code>&lt;% # jobs/_job.html.erb %&gt;
  &lt;% # jobs/index.html.erb %&gt;
  &lt;% # @jobs set in jobs#index %&gt;
  
  &lt;%= render partial: 'jobs/job', locals: { jobs: @jobs } %&gt;
  </code></pre>
  
  <p>Renders nothing...</p>
  
  <pre><code>&lt;% # users/show.html.erb %&gt;
  &lt;% # @jobs set in users#show %&gt;
  &lt;% # binding.pry shows @jobs is set %&gt;
  &lt;% # binding.pry shows local jobs is set %&gt;
  
  &lt;%= # render partial: 'jobs/job', locals: { jobs: @jobs } %&gt;
  &lt;% # adding the following line per @ suggestion, but still not rendering %&gt;
  &lt;%= render partial: 'jobs/job', object: @jobs %&gt;
  </code></pre>
  
  <p><strong>Edit:</strong></p>
  
  <pre><code>&lt;% # _job.html.erb %&gt;
  &lt;% @jobs.each do |job| %&gt;
  &lt;% # stuff %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p><strong>Pretty straight-forward, but just in case...</strong> </p>
  
  <pre><code># users_controller.rb
  def show
    @pups           = current_user.pups
    @availabilities = current_user.availabilities
    @jobs           = current_user.jobs
  end  
  </code></pre>