Is it that AR 2.1 only has problems in conjunction with Camping?  Or
is table-based session support totally broken in Rails 2.1 right now?

-- Eric

On Tue, Jul 29, 2008 at 1:10 AM, Alpha Chen <[EMAIL PROTECTED]> wrote:
> This happened to me... I saw an email on this list earlier about AR
> 2.1.0 having problems, and reverting back to 2.0.2 got session support
> working again.
>
> On the command line:
> $ gem install --version '=2.0.2' activerecord
>
> In Camping:
> gem 'activerecord', '=2.0.2'
>
> Alpha
>
> On Mon, Jul 28, 2008 at 9:15 PM, Eric Mill <[EMAIL PROTECTED]> wrote:
>> Is this with Camping 1.5 or Camping 2.0?
>>
>> -- Eric
>>
>> On Mon, Jul 28, 2008 at 6:05 PM, Fred Phillips
>> <[EMAIL PROTECTED]> wrote:
>>> I have a sqlite3 database with the sessions table and schema set up
>>> correctly. Sessions are created fine and put in the table, the cookie
>>> is set with the correct hash and the hash is found again but when
>>> using @state the values aren't updated in the table.
>>>
>>> I know that Session::service is called and the contents of the record
>>> are put into session like so:
>>> #<Camping::Models::Session id: 1, hashid: 
>>> "iSCMSIzV7ITsRTr0UMA8Gko3LEnY3bw4", created_at: "2008-07-24 17:11:43", 
>>> ivars: {}>
>>>
>>> I do @state.user = 5, then it then gets as far as making session look
>>> like this:
>>> #<Camping::Models::Session id: 1, hashid: 
>>> "iSCMSIzV7ITsRTr0UMA8Gko3LEnY3bw4", created_at: "2008-07-24 17:11:43", 
>>> ivars: {"TLCMS"=>{"user"=>5}}>
>>>
>>> But then session.save doesn't write to the table, and doesn't throw an
>>> error (session.save! doesn't either). Can anyone see what is going
>>> wrong?
>>>
>>> FWIW I'm using FastCGI
>>>
>>> --
>>> Fred O. Phillips
>>> http://fophillips.org
>>> BBC7 7572 755F 83E0 3209  504A E4F7 874F 1545 9D41
>>>
>>> _______________________________________________
>>> Camping-list mailing list
>>> [email protected]
>>> http://rubyforge.org/mailman/listinfo/camping-list
>>>
>> _______________________________________________
>> Camping-list mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/camping-list
>>
> _______________________________________________
> Camping-list mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/camping-list
>
_______________________________________________
Camping-list mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to