[Ruby] Server Inconsistencies
Tom Lianza
tom at lianza.org
Sat Oct 13 21:31:29 PDT 2007
On 10/13/07, Jordan Isip <jordanisip at yahoo.com> wrote:
>
> Hi All,
>
> I'm having a bit of an issue that is hard to debug since it only occurs on
> my production server and not on my localhost. About half the time on my
> production server I get the following error on an instance variable defined
> within my controller.
>
> ActionView::TemplateError (undefined method `[]' for nil:NilClass) on line
> #38:
> <%= @total_points[caption.id] %>
>
> Then if I hit 'refresh', it will work normally again. I would say this
> error comes up about 30% of the time. Any ideas on why there would be
> inconsistencies between the two difference servers?
>
That's the line where you're printing it... I suspect the lines where you're
creating it and setting it are more interesting with regard to
troubleshooting this problem.
Tom
More information about the Ruby
mailing list