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 ActiveRecord::Base.establish_connection(:adapter => 'sqlite3',:dbfile => 'test.db') seems work find,but when User.find(1) it says "no driver for sqlite3 found"
thanks to Marc Galbraith I 'git' the sources,and 'rake' it,but the problem still there maybe i should try another machin :( thanks anyway :) 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 <[email protected] <mailto:[email protected]>> > > I've use > Shoes.setup do > gem 'activerecord' > end > > to install the activerecord gem ,and got succes. > when i use active record the connect the sqlite3, it says "no > driver for > sqlite3 found", > and I tried to > Shoes.setup do > gem 'sqlite3-ruby' > end > > It does not work,I guess it's because shoes has install it > already,since > i can found it in /tmp/selfxxxxxx/ > > I googled and not found a result. > In windows ,it works fine. > what happened to my ubuntu??? > > Ubuntu Version : 64bit 8.04 > ruby verserion : 1.87 use ruby xxxx > 1.86 use apt-get intall , is ruby1.8 xxxx > > some lib : i've already instal the libsqlite3 xxxx > > any help ?? > 3ks >
