Has anyone used the SqlSessionStore plugin with the newer ruby-pg
adaptor?  I just replaced the ruby-postgres gem (no longer supported)
with the ruby-pg gem but now my rails apps do not start up.  There
is a line in the plugin's postgresql_session.rb file:

  require 'postgres'

that when changed to 

  require 'pg'

allows the app to start.  However, once running, if I actually
try to connect, I get another failure:

/!\ FAILSAFE /!\  Mon Nov 03 17:59:48 -0800 2008
  Status: 500 Internal Server Error
  undefined method `quote' for PGconn:Class
    /blah/vendor/plugins/sql_session_store/lib/postgresql_session.rb:50:in 
`find_session'
    /blah/vendor/plugins/sql_session_store/lib/sql_session_store.rb:33:in 
`initialize'
    /usr/lib/ruby/1.8/cgi/session.rb:279:in `new'
    /usr/lib/ruby/1.8/cgi/session.rb:279:in `initialize_without_cgi_reader'
   etc....

This is with the latest code at 
git://github.com/joergbattermann/sql_session_store.git

Is SqlSessionStore deprecated?  Or is there a version that works with
ruby-pg (supposedly the most up-to-date postgres adaptor)?

I haven't found anything yet via google, so I figured I'd check
this list.

Thanks in advance!

        -glenn






--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to