Re: nil object in create_time_zone_conversion_attribute?

Jeffrey L. Taylor
Sat, 20 Dec 2008 05:53:22 -0000

Quoting KenM
<Andawyr-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
>
> Some further information....
>
> This issue is apparently caused by not passing enough parameters to
> the route helpers when you have nested resources.  For example, I have
> a gallery, which has a nested image resource.  When generating links
> in the view, I called the helper, but I didn''t pass an array with
both
> the gallery and the image, only the image.
>
> The first time presenting the view would work; the second, I would get
> the stack trace, and from that point on the mongrel instance is
> hooped, and would not serve any content.  It would have to be
> restarted.
>
> I''ve fixed the view, and the problem is now resolved.
>
> However, I''m concerned about being able to crash mongrel hard this
> way.....
>

I was getting similar errors I started using Rails.cache w/ Rails 2.2.2.
I''m
using Webrick, not Mongrel.  I gave up and went back to using my homegrown
caching.  With you information about not enough parameters, I may go back and
try again.

Jeffrey