From: "Danilo L." Date: 2012-04-28T01:35:18+09:00 Subject: Re: ruby/shoes GUI - sqlite, how to isert a variable key in table? Michel wrote in post #1058590: > Le vendredi 27 avril 2012 à 15:35 +0900, Zachary Scott a écrit : > >> Hi Danilo, How are you enjoying shoooes? >> >> Make sure to interpolate those instance variables! >> >> db.execute "insert into db.table (column-name) values (#{@ivar})" >> > > Yes, you can do like that. But I think that works only with VARCHAR > types, because #{var} calls the to_s method on var. > > Regards, > Michel. I tried it but did not work = / -- Posted via http://www.ruby-forum.com/.