title: Programmatically render spacer_template
body: <p>I have a rails spacer template that's used in between renderings of a collection. For example, it might be as simple as</p>
  
  <pre><code>&lt;hr /&gt;
  </code></pre>
  
  <p>If I render a collection of users for example then after each user it will render <code>&lt;hr /&gt;</code>. Here's how I specify the spacer template in my view.</p>
  
  <pre><code>render :partial =&gt; @users, :spacer_template =&gt; "users/user_separator"
  </code></pre>
  
  <p>This works fine but I was wondering if there's a way to render the spacer template by itself from within my controller. Something like <code>render_to_string</code> but specifically for just the spacer template.</p>
  
  <p>I need this because I am doing an ajax request to add a user comment. Right now I can successfully render the comment with <code>render_to_string</code> but since it's not a collection the spacer template is not showing up.</p>