From: "David A. Black" Date: 2008-10-16T21:09:59+09:00 Subject: Re: A Ruby block question On Thu, 16 Oct 2008, David Trasbo wrote: > David A. Black wrote: > >>>> m << yield f >>> >>> Yes, that was also my first idea, but that is giving me this syntax >>> error: >>> >>> syntax error, unexpected tIDENTIFIER, expecting kEND >> >> Put f in parens: >> >> m << yield(f) > > That's also a possibility. But it seems to be a little more complicated > as mentioned. > > can't convert nil into String You're one post behind -- read my previous answer :-) David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL * * Co-taught with Patrick Ewing! See http://www.rubypal.com for details and updates!