So after looking it more, I think I'm going to need to subclass ActionView::PartialRenderer to do the rendering. It should actually work out pretty well I think. I'll give it a shot.