# From Instant Rails 2.0 to Rails 2.1.0 - cache problem

**URL:** <https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/141256>\
**Category:** Rails\
**Created:** [June 24, 2008, 3:11am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/141256 "2008-06-24T03:11:49Z")\
**Posts on this page:** 3\
**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 24, 2008, 3:11am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/141256/1 "2008-06-24T03:11:49Z")

</div>

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 my controller, i get the message

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

and if i try to set the cache store  
(“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, 3:53am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/141256/2 "2008-06-24T03:53:24Z")

</div>

double post, please ignore (or delete). i posted  
it hours ago through google groups and only now  
it appeared. i’ll post here directly next time.

---

<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, 11:18am UTC](https://www.ruby-forum.com/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/141256/3 "2008-06-24T11:18:01Z")

</div>

On Jun 24, 2:53 am, Pepe J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> double post, please ignore (or delete). i posted  
> it hours ago through google groups and only now  
> it appeared. i’ll post here directly next time.

Messages from people who have not posted before are queued for  
moderation, which will occasionally cause delays.

Fred
