Nvm, got it.

require 'mysql'

   sentence = Mysql.escape_string(sentence.to_s)
    dbh.do("INSERT INTO sentences (id,text)
    VALUES
    (#{id}, '" + sentence + "')")


   :)

-- 
Posted via http://www.ruby-forum.com/.