undefined method 'cache_template_loading=' for ActionViewBaseClass

技术分享 2014-07-16

Problem:
While developing on Rails 2.3.2 you want to deploy in dreamhost that uses 2.2.2 at the moment.
Solution:
Although we could try to freeze the specific rails version we are using, it's probably easier as a temporary solution, until dreamhost upgrades the rails version to do the following:

  • Make sure that we have the following line with the appropriate version of
    RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
    in the config/environment.rb file.
  • Rename the application_controller.rb file back to application.rb
  • Comment out the following line fromconfig/environments/production.rb
    config.action_view.cache_template_loading = true.

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!