Re: Sqlite3 on ubuntu

2009-03-10 Thread Paul McConnon
Hi there I have activerecord working in shoes with sqlite Shoes.setup do gem 'activerecord' end require 'active_record' ActiveRecord::Base.establish_connection(:adapter = 'sqlite3',:dbfile = 'dbname.db') require 'model_name' That's all I had to do, sqlite gem was

Re: Sqlite3 on ubuntu

2009-03-10 Thread Marc Galbraith
Hi, Noticed you are using 64-bit version of Ubuntu, did you build shoes from source on your system? Once I did that lots of ruby library problems went away. Regards, Marc. 2009/3/10 niedh dianhui@gmail.com I've use Shoes.setup do gem 'activerecord' end to install the activerecord gem

Re: Sqlite3 on ubuntu

2009-03-10 Thread niedh
thanks to Paul my test code is : Shoes.setup do gem 'activerecord' require 'active_record' ActiveRecord::Base.establish_connection(:adapter = 'sqlite3',:dbfile = 'test.db') require 'user' end Shoes.app do begin para User.find(1).id rescue StandardError = e alert(e) end end