我从 rails 3.2.13 升级到 rails 4.0.1。我遇到了缓存问题,这给了我未定义的方法'expired_fragment'。
有没有办法禁用缓存摘要?
我还添加了这些宝石:
gem 'actionpack-page_caching', github: 'rails/actionpack-page_caching'
gem 'actionpack-action_caching', github: 'rails/actionpack-action_caching'
gem 'rails-observers', github: 'rails/rails-observers'
但似乎缓存不像上次那样执行。
任何指导,还是其他人面临同样的问题?
source 'http://rubygems.org'
gem 'activerecord-session_store', '0.1.0'
gem 'actionpack-page_caching', github: 'rails/actionpack-page_caching'
gem 'actionpack-action_caching', github: 'rails/actionpack-action_caching'
gem 'builder', '3.1.0'
gem 'carrierwave', '0.9.0'
gem 'dalli', '2.6.4'
gem 'mysql2', '0.3.14'
gem 'protected_attributes', '1.0.5'
gem 'rails', '4.0.1'
gem 'rails-observers', github: 'rails/rails-observers'
gem 'RubyInline', '3.12.2'
gem 'sass-rails', '4.0.1'
gem 'therubyracer', '0.12.0'
gem 'thin', '1.6.1'
gem 'unf', '0.1.3'
gem 'uglifier', '2.3.2'