Rails 4中的活动管理员抛出错误“无效的选项密钥”

时间:2013-11-01 02:54:08

标签: ruby-on-rails-4 activeadmin actionpack railtie

Rails 4 app工作正常,直到gem文件中包含Active Admin(来自this thread)。

我的Gemfile:

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)

非常感谢任何帮助!

1 个答案:

答案 0 :(得分:1)