title: render collection of partials as html in rails
body: <p>I am using jQuery to do an ajax call to my controller, and everything is working perfectly, except I can't quite get the return value that I want.</p>
  
  <p>Let's say I have a collection of items, and I have the partial:</p>
  
  <pre><code>/app/views/messages/_message.html.erb
  </code></pre>
  
  <p>I am trying to render it as a big string of text/html like so:</p>
  
  <pre><code>format.js { render_to_string :partial =&gt; "message", :collection =&gt; @messages}
  </code></pre>
  
  <p>However, this is rendering a view of some sort, because I'm getting  and  tags.  Even if I change it to:</p>
  
  <pre><code>format.js { render_to_string :partial =&gt; "message", :collection =&gt; @messages, :layout =&gt; 'none'}
  </code></pre>
  
  <p>it still returns the same thing.  Is this possible?  I need to return it for jQuery to handle it, so I'm not sure if this can be done with rjs.  Any help is appreciated.</p>