Undefined method `fragment_cache_store=' Ruby on Rails error

Posted on 28 April 2009

The variable fragment_cache_store has now been replaced with just cache_store.

So in my case I changed:

ActionController::Base.fragment_cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"

To:

ActionController::Base.cache_store = :file_store, "#{RAILS_ROOT}/tmp/cache"

About Paul

Paul works for Kyan web design agency in Surrey, UK as a Ruby on Rails developer.

Follow Paul on Twitter

Email: paulsturgess [at] gmail.com

Read more articles in the archive →

Comments...

  • This is just what I needed. Thanks

    Peter Fisher at 23 May 11 at 05:19

Got something to say?