Rails 1.2升级至2.1(一)

rails 从2.0起在控制器中废弃了observer方法,相关的错误信息: undefined method `observer’ for ApplicationController:Class (NoMethodError) 解决的方法是将observer的设置信息移至enviroment.rb中: # Activate observers that should always be running config.active_record.observers = :cacher, :garbage_collector

你可能感兴趣的:(Rails)