Blocks using concat do not work inside helper

Hi,

I wrote this ticket yesterday and it had been deleted and marked as
invalid
http://dev.rubyonrails.org/ticket/9066

Ticket:

When I try to do this from a helper:

def foo(&block)
concat “

”, block.binding
yield
concat “
”, block.binding
end

def bar(&block)
concat foo {“content”}, block.binding
yield
end

I get this error

undefined local variable or method `_erbout’ for …
Using “foo” without “concat” works.

def foo( &block)
yield
end

Nothing wrong with that but the solution postet by josh doesn’t help:
def foo(&block)
concat content_tag(:div, capture(&block)), block.binding
end

I get the same error.

Hi,

I am having the same problem too. I don’t understand how to use the
concat method inside a helper. It works fine in the view though.