Re: nil object in create_time_zone_conversion_attribute?

Chris Luebcke
Sat, 07 Feb 2009 19:43:23 -0000

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.
--
Posted via http://www.ruby-forum.com/.