pivotal/erector — pull request #30 by sublogical (2012-01-23 20:24:17+00:00)
Title: Fix rails widget rendering to work with depends_on

Currently the rails render widget code uses the view output buffer as the output buffer passed into Erector::Output. This causes the placeholder string to be copied into the output buffer as the header is rendered. This prevents the actual rendering of the dependencies from working later on in the process.

This change makes render widget use the default output buffer (an array) and then serializes it into the rails view output buffer when it's done.