From: Abraham Vionas Date: 2004-11-23T16:17:56+09:00 Subject: PostgreSQL (Postgres-pr) + Rails = Unexpected EOF error? I'm running XP, Ruby 1.8.2RC3, Rails 0.8.5, PostgreSQL 8BetaRC3, and Postgres-pr (new Ruby library). My problem is that I'm getting an "Unexpected EOF error on client connection." Does anyone perchance know what's causing this? It happens both on Webrick and Apache. Regards, Abe P.s. I have not yet successfully completed a connection to the PostgreSQL DB yet. -----Original Message----- From: Michael Neumann [mailto:mneumann@ntecs.de] Sent: Monday, November 22, 2004 5:49 PM To: abe@bozemantechmedic.com Cc: david@loudthinking.com Subject: Re: Rails/ActiveRecord + Postgres-pr Question Abraham Vionas wrote: > Hi David and Michael; > > I'm not entirely sure where the problem lies so I thought I'd just ask > both of you if you might know what could be causing the error I'm > getting trying to run a tutorial on Rails. I'm running Rails-0.8.5, > postgres-pr-0.2.1, and a PostgreSQL DB (version 8 RC 3), on Ruby 1.8.2RC3. > > The code that evokes the error is as so... > > in [todo_controller.rb] > > require 'abstract_application' > require 'todo' > > class TodoController < AbstractApplicationController > helper :todo > scaffold :todo > end > and in [todo_helper.rb] > > module TodoHelper > end > > and lastly in [todo.rb] > > require 'active_record' > require 'todo' > > class Todo < ActiveRecord::Base > end > The issued URL looks like: http://localhost/todo/ > > The error: > > TypeError in Todo#index > > superclass mismatch for class ParseError Hm, ParseError is a class in postgres-pr/message.rb. But I don't understand the error message "superclass mismatch". Can you update to 0.2.2 which puts all stuff into a module PostgresPR. Maybe it was a namespace issue? Regards, Michael