My bad it should have been
cursor.exec() and not conn.exec()
-- 
Posted via http://www.ruby-forum.com/.