[Ruby] Server Inconsistencies
Jordan Isip
jordanisip at yahoo.com
Sat Oct 13 21:47:35 PDT 2007
Hi Tim,
Thanks for the reply. Do you know how/where I can find the creating/setting exceptions (on the production server)? When I look at the trace on the exception in the logs that I receive, the only line that pertains to any code that I've written is the ActionView::TemplateError (undefined method `[]' for nil:NilClass).
Thanks again!
Jordan
----- Original Message ----
From: Tom Lianza <tom at lianza.org>
To: Seattle Ruby Brigade! <ruby at zenspider.com>
Sent: Saturday, October 13, 2007 9:31:29 PM
Subject: Re: [Ruby] Server Inconsistencies
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
_______________________________________________
Ruby at zenspider.com - Seattle.rb non-commercial list
http://www.zenspider.com/seattle.rb
http://www.zenspider.com/mailman/listinfo/ruby
More information about the Ruby
mailing list