Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 914
Jordan Adams Avatar asked Sep 16 '11 14:09

Jordan Adams


2 Answers

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.

like image 66
seanyboy Avatar answered Sep 27 '22 17:09

seanyboy


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.

like image 43
lukaszkups Avatar answered Sep 27 '22 17:09

lukaszkups