0

Rails 4 应用程序运行良好,直到 Gemfile 中包含 Active Admin(来自此线程)。

我的宝石文件:

gem 'rails', '4.0.0'
gem 'rails_12factor', group: :production
gem 'pg'
gem 'sass-rails', '~> 4.0.0.rc1'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'

gem 'activeadmin', github: 'gregbell/active_admin'

gem 'protected_attributes'
gem 'rails-observers'
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'

gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'

group :doc do
  gem 'sdoc', require: false
end

在安装全新捆绑包后尝试启动 rails 服务器时会引发错误。

/var/lib/gems/1.9.1/gems/actionpack-4.0.0/lib/action_controller/railtie.rb:55:in `block (3 levels) in <class:Railtie>': Invalid option key: page_cache_directory= (RuntimeError)

任何帮助是极大的赞赏!

4

1 回答 1

1

尝试使用:

http://blog.remarkablelabs.com/2012/12/russian-doll-caching-cache-digests-rails-4-countdown-to-2013

或者:

运行bundle install并重新安装 actionpack-action_caching

https://github.com/rails/actionpack-action_caching

于 2013-11-01T07:29:34.300 回答