Re: :active_record_store + :table_name_with_underscore session issues

Greg Donald
Thu, 29 Jan 2009 19:07:14 -0000

On Wed, Jan 28, 2009 at 6:35 PM, Frederick Cheung
<frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hmm. The problem you have is that by setting primary key
> to :table_name_with_underscore rails wants to use session_id as the
> primary key to the sessions table. it also wants to use session_id for
> the session identifier and for whatever reason, the primary key
''wins''.
> You could fiddle the SessionClass for it to store the session
> identifier in a different column (or
> CGI::Session::ActiveRecordStore::Session.set_primary_key
''id'' would
> probably do the trick if you can get away with it.

I appreciate the reply but I''m not gonna bother trying to figure it
out, I switched to memory sessions this morning and it works with no
problems.

I''m not really understanding how I can have another app on Rails 2.0.2
that has this exact same setup and it works fine.  Something changed
from 2.0.2 -> 2.2.2 which obviously didn''t break any Rails core
tests.. I mean, if anyone is even testing on anything besides MySQL.
To use Rails in medical research means Oracle most of the time.


--
Greg Donald