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
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
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