# From Instant Rails 2.0 to Rails 2.1.0 - cache problem

**URL:** <https://discuss.rubyonrails.org/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/30976>\
**Category:** rubyonrails-talk\
**Created:** [June 23, 2008, 7:21pm UTC](https://discuss.rubyonrails.org/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/30976 "2008-06-23T19:21:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PJunty](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@PJunty](https://discuss.rubyonrails.org/u/PJunty)\
**Post date:** [June 23, 2008, 7:21pm UTC](https://discuss.rubyonrails.org/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/30976/1 "2008-06-23T19:21:39Z")

</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:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [June 24, 2008, 1:53am UTC](https://discuss.rubyonrails.org/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/30976/2 "2008-06-24T01: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:** ![Frederick\_Cheung](https://sea2.discourse-cdn.com/rubyonrails/user_avatar/discuss.rubyonrails.org/frederick_cheung/32/3901_2.png) [@Frederick\_Cheung](https://discuss.rubyonrails.org/u/Frederick_Cheung)\
**Post date:** [June 24, 2008, 9:17am UTC](https://discuss.rubyonrails.org/t/from-instant-rails-2-0-to-rails-2-1-0-cache-problem/30976/3 "2008-06-24T09:17:39Z")

</div>

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

Fred
