From: Mrmaster Mrmaster Date: 2009-09-18T05:16:16+09:00 Subject: Re: Value isn't appended in puts statement(appears on next line) 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 -- Posted via http://www.ruby-forum.com/.