ERB doesn’t set either of the ‘performed’ instance variables; without seeing the
context, it is hard to tell what the problem might be.
But, having been burned by this myself, make sure that you are exiting the
action after you call render - doing this
where ‘thing2’ is intended as a default action, will get you the DoubleRenderError
you’re describing. Adding a return statement after the first render will fix it.
The default message for DoubleRenderError is much more informative than the
replacement supplied by the render function - check it out for more detail.
Hope this helps,