Ruby using yield and got this problem: Cannot yield from a Proc type filter.
Posted
by Totty
on Stack Overflow
See other posts from Stack Overflow
or by Totty
Published on 2010-05-14T18:32:51Z
Indexed on
2010/05/14
18:34 UTC
Read the original article
Hit count: 315
Im using like this:
def child_render
super_render {
print GridModule.new.render
}
end
def super_render
@yield_value = yield
end
and got: Cannot yield from a Proc type filter. The Proc must take two arguments and execute #call on the second argument.
© Stack Overflow or respective owner