I want to render multiple partials in a controller, these will not be part of the response, but pushed to clients via Juggernaut instead.
I’m using render_to_string.
When the second one is called, I get a DoubleRenderError.
How do I render a partial the way that performed? will not be affected?
It turns out render_to_string clears off “render results”, so you can call it multiple times. The problem was that I called render_to_string in an after_filter hook, after a render was already called.