Closed samstickland closed 9 years ago
add cells-erb gem
Thanks :) That really ought to be mentioned in the readme (it currently says: Cells comes bundled with ERB support. To render HAML, you have to include the cells-haml gem. The same for cells-slim).
Unfortunately it didn't work. I installed cells-erb (0.0.1) and without my monkey patch it still gave the same error message.
@seuros This is because we removed many tests when I merged the gigantic PR. We have to re-add those tests before we release Cells 4.
This is fixed in cells-erb 0.0.2.
This is similar to issue #265 but for ERB templates.
The error is raised in ActionView:Helpers:Capture:Helper
Something has already defined output_buffer as an empty array, which makes it die here. Digging into the cells code shows that it's this method in ViewModel:
This can be fixed by monkey patching like this, but it is bringing back ActionView:
The longer term fix would be defining output_buffer to something that supports all the methods ActionView requires?