From: RichardOnRails Date: 2009-04-05T13:29:28+09:00 Subject: Re: Got some syntax error I can't spot. Can you (I hope)? On Apr 4, 12:34 pm, Leo wrote: > > I pulled my problem code from my app into a test onhttp://www.pastie.org/436616. > > You might want to take a look at ruby's heredoc syntax: > > Instead of > >     a = ("foo" + "(%d)" + " bar") % 123 > > you could also use: > >     a = <     foo(%d) bar >     TEXT Hi Leo, Nice idea! Saves typing (and mistyping!) all those quotes, pluses, \n and \t. Works great! Many thanks and Best wishes, Richard