ActionView::CaptureHelper#capture error

I am using edge rails and a plugin that uses capture and I am getting
an error that block_called_from_erb? doesn't exist. Where should it
be declared and what should it contain?

Dieter