Robert Klemme wrote:
> On 10.01.2007 22:44, Mike Keller wrote:
>> Gavin Kistner wrote:
>>> What that means is that on line 27, you are calling "free" on a nil
>>> object.
>>> Which means that 'res' is a nil object.
>>> Which means that db.query(...) is returning nil.
>> 
>> My question now is what would someone recommend as the best solution for 
>> this.
> 
> Since it's not a query you do not get anything back.  Remove "res"
> altogether from the code.

Thanks guys.

By removing res altogether like Rob said I actually killed two birds 
with one stone.  When I did of course it got rid of the error as well as 
stopping it from throwing the data in the db three times.

If anybody knows exactly why it would do that it would be nice.

Thanks again.


-- 
Posted via http://www.ruby-forum.com/.