Re: nil object in create_time_zone_conversion_attribute?

Jeffrey L. Taylor
Sat, 20 Dec 2008 18:26:03 -0000

Quoting Jeffrey L. Taylor
<ror-f/t7CGFWhwGcvWdFBKKxig@public.gmane.org>:
>
> 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.
>

I went back and looked hard at my code that was crashing.  I was missing a
parameter to a yield statement.  So Rails appears to be brittle around this
issue.  And maybe Mongrel more brittle than Webrick.

Thanks for the hint.  It is always nice to get rid of code that I have to
maintain in favor of builtin stuff that someone else maintains.

Jeffrey