Chris,
Did you ever find a solution to this problem? It defiantly was not the case
in a previous version of rails. I am getting back into rails after a month
or two away and now I am getting this same error. My app will work fine when
I leave for work and then when I have this error.
Sorry for the direct email,
Jacob Tomaw
On 7/28/05, Chris Monnat
<cmmonnat-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> I am having a problem. I am trying to work through the PDF of Dave
> Thomas''s book, but I keep getting this error after developing for
five to
> ten minutes:
>
> WARNING: You have a nil object when you probably didn''t expect
it! Odds are you
> want an instance of Array instead.
>
> Look in the callstack to see where you''re working with an object
that could be nil.
> Investigate your methods and make sure the object is what you expect!
>
> : SELECT COUNT(*) FROM products
>
> If I refresh the page, I get a different error:
>
> Invalid argument: SELECT COUNT(*) FROM products
>
> Nothing code wise has changed, it just stops working after five or ten
> minutes. If I restart WEBrick it works again, but I can''t get
anything done
> working like that.
>
> Anyone have any ideas??
> CM
>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails