Hi,

I am a newbie in Ruby. Its very interesting language. Now, my problem is
with the below code.

require 'rubygems'
require 'sqlite3'
db = SQLite3:atabase.new( "test2.db" )
db.execute("create table t1 (id INTEGER PRIMARY KEY,data TEXT,num
double,timeEnter DATE)")
db.execute( "insert into t1 (data,num) values ('This is sample
data',3)")
rows = db.execute( "select * from t1" )
end

I am receiving this error: "database.rb:7: syntax error, unexpected
kEND, expecting $end"

Please help.

I have installed the sqlite3 gem.

Please help. Thanks!
-- 
Posted via http://www.ruby-forum.com/.