title: Rails 4 - rendering a collection with a partial name different to the variable
body: <p>I have the following partial <code>posts/post_preview</code> in my project:</p>
  
  <pre><code>.post
    %h2= link_to(post.title, post)
    .post-body= simple_format(post.body)
    %ul
      - post.tags.each do |tag|
        %li= tag
  </code></pre>
  
  <p>I want to render this partial for a collection name <code>@posts</code>, like so:</p>
  
  <pre><code>render partial: 'post_preview', collection: @posts
  </code></pre>
  
  <p>However, <code>render</code> by default passes each member of the collection as a local variable named after the partial. Is there any way I can change this so each member of <code>@posts</code> is passed into the partial in a variable named <code>post</code>?</p>