# Updating to 2.1.0 using InstantRails2.0 - cache problem

**URL:** <https://www.ruby-forum.com/t/updating-to-2-1-0-using-instantrails2-0-cache-problem/141233>\
**Category:** Rails\
**Created:** [June 23, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/updating-to-2-1-0-using-instantrails2-0-cache-problem/141233 "2008-06-23T22:27:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppjunty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Post date:** [June 23, 2008, 10:27pm UTC](https://www.ruby-forum.com/t/updating-to-2-1-0-using-instantrails2-0-cache-problem/141233/1 "2008-06-23T22:27:37Z")

</div>

hello. i’m trying to update to rails 2.1 using instant rails,  
so i can use the new cache features, but when i try to  
use the method “Rails.cache.write” in a controller, i  
get the error

“undefined method `cache’ for Rails:Module (NoMethodError)”

and if i try to force the cache store to memory\_store using

“ActionController::Base.cache\_store = :memory\_store”

in a conf file, i get: “undefined method `cache\_store=’ for  
ActionController::Base:Class (NoMethodError)”

the version message for (“rails -v”) is “Rails 2.1.0”, so i assume that  
the version is ok. does anyone know what could be the problem?  
thanks.

---

<div class="post-metadata">

**Author:** ![ppjunty](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/aeb1de/32.png) [@ppjunty](https://www.ruby-forum.com/u/ppjunty)\
**Post date:** [June 24, 2008, 12:05am UTC](https://www.ruby-forum.com/t/updating-to-2-1-0-using-instantrails2-0-cache-problem/141233/2 "2008-06-24T00:05:48Z")

</div>

forgot to set the RAILS\_GEM\_VERSION variable to ‘2.1.0’

being a newbie sucks…

Pepe J. wrote:

> hello. i’m trying to update to rails 2.1 using instant rails,  
> so i can use the new cache features, but when i try to  
> use the method “Rails.cache.write” in a controller, i  
> get the error
> 
> “undefined method `cache’ for Rails:Module (NoMethodError)”
> 
> and if i try to force the cache store to memory\_store using
> 
> “ActionController::Base.cache\_store = :memory\_store”
> 
> in a conf file, i get: “undefined method `cache\_store=’ for  
> ActionController::Base:Class (NoMethodError)”
> 
> the version message for (“rails -v”) is “Rails 2.1.0”, so i assume that  
> the version is ok. does anyone know what could be the problem?  
> thanks.
