Re: nil object in create_time_zone_conversion_attribute?

Joe Ellis
Wed, 01 Apr 2009 03:35:19 -0000

Chris Luebcke wrote:
> Robert Matei wrote:
>> I''m getting the same error and a bit baffled.
>>
>> For me it''s happening when I''ve cached an array of
ActiveRecord objects
>> with Rails.cache and try to read them back. If I''m dealing
with an array
>> of integers it works fine.
>>
>> Note that this is only happening on my development machine with
whatever
>> Rails'' default caching mechanism is. In production, with
Memcached, it''s
>> fine, so I just ended up installing Memcached on my development machine
>> and it worked fine.
>
> That was exactly my experience, except that I''m a bit of a n00b
with RoR
> (though not other development) and figured I must be doing something
> wrong. Hours and hours later I finally realized that, no, Rails.cache in
> 2.2.2 (at least) is failing to either store or retrieve ActiveRecord
> objects.
>
> Five minutes after reading this I had memcached installed locally and
> all my problems were solved.

I had the same problem, and same solution.  But I just recently upgraded
to 2.3.2 and everything seems to work fine.  I suppose whatever it was
got fixed?
--
Posted via http://www.ruby-forum.com/.