Rails 3.1.0 - undefined method `page_cache_extension' for ActionController::Base:Class

无人久伴 提交于 2019-12-14 03:40:53

问题


When I try load my rails 3.1 app I just get this error. Any ideas?

undefined method 'page_cache_extension' for ActionController::Base:Class


回答1:


somewhere I've read that it could be caused because of empty database - do You have one? Check if there You have any records ;) This resolved my problem with it.




回答2:


I removed the following lines from development.rb

config.action_view.debug_rjs             = true
config.action_controller.perform_caching = false

Not sure if this is right, but it worked for me.



来源:https://stackoverflow.com/questions/7445917/rails-3-1-0-undefined-method-page-cache-extension-for-actioncontrollerbase

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!