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 “
yield
concat “
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.