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 "<div>", block.binding
yield
concat "</div>", 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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---