From: "Jesús Gabriel y Galán" Date: 2009-09-18T05:30:23+09:00 Subject: Re: Value isn't appended in puts statement(appears on next line) On Thu, Sep 17, 2009 at 10:16 PM, Mrmaster Mrmaster wrote: > Gary Wright wrote: >> On Sep 17, 2009, at 3:01 PM, Jes�s Gabriel y Gal�n wrote: >>>                puts "SQL STATEMENT I MADE UP ='"+somedigit+"'" >> >> A more idiomatic version of that would be: >> >>                 puts "SQL STATEMENT I MADE UP '#{somedigit}'" >> >> Gary Wright > > Hi Gary, > > I tried it your way and it still gives me a new line. I think you still > have to chomp it since the value returned is somedigit\n Sure, he was just pointing out that string interpolation is more idiomatic than string concatenation for cases like this one. Jesus.