Re: nil object in create_time_zone_conversion_attribute?

sadeesh kumar viswanathan
Fri, 19 Dec 2008 19:36:39 -0000

Paste you full error trace here.

Thanks,
Sadeesh.

On Dec 19, 9:23 pm, KenM <Anda...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Happily coding away in a Rails 2.2.2 Bort based-app, when I suddenly
> start getting this error after a few requests:
>
> NoMethodError (You have a nil object when you didn''t expect it!
> You might have expected an instance of Array.
> The error occurred while evaluating nil.include?):
>     /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
> active_record/attribute_methods.rb:142:in
> `create_time_zone_conversion_attribute?''
>     /opt/local/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/
> active_record/attribute_methods.rb:75:in
`define_attribute_methods''
>
> This only appears if I authenticate to the application.  I can make a
> couple of requests, then i start getting the above error.  While I
> don''t think I''ve made any changes to cause something like
this, when
> you''re so far removed from the low-level bits of the framework,
it''s
> hard to tell.
>
> I''ve searched the net, and while I''ve found a few hits on
this, there
> are no solutions to be found.
>
> Anyone have any suggestions?