From: Fred Phillips Date: 2008-07-30T01:15:29+09:00 Subject: Re: Camping not saving @state --ncSAzJYg3Aa9+CRW Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed Jul 30 00:40:11 2008, jonty wrote: > Thanks for finding the problem as I am using Camping quite a bit at the= =20 > minute - do you know how to use your own database instead of camping.db? > I tried putting another db name in the postamble as I have seen in exampl= es=20 > but it still just uses camping.db. > > Fred Phillips wrote: >> Okay the problem was with ActiveRecord 2.1, downgrading to 2.0.2 fixed >> it. >> >> =20 > I am using FastCGI, my dispatch.rb looks like this: require 'rubygems' gem 'activerecord', '=3D2.0.2' require 'camping/fastcgi' Camping::Models::Base.establish_connection :adapter =3D> 'sqlite3', :database =3D> '/tmp/tlcms.rb' Camping::FastCGI.serve("/usr/pkg/share/httpd/htdocs/tlcms2/tlcms.rb") So I don=E2=80=99t need a PostAmble. --=20 Fred O. Phillips http://fophillips.org BBC7 7572 755F 83E0 3209 504A E4F7 874F 1545 9D41 --ncSAzJYg3Aa9+CRW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkiPQjwACgkQ5PeHTxVFnUGRRQCgktbzUdG5IFZunPgfKYH6yHtQ ZjsAnRvKywzkO8BGTRZLCtHVd7xM/Yye =34+p -----END PGP SIGNATURE----- --ncSAzJYg3Aa9+CRW--