Rails 3:DEPRECATION警告:3.1中将删除config.action_view.debug_rjs

时间:2011-08-01 06:40:46

标签: ruby-on-rails ruby-on-rails-3 warnings

当我运行rails s时,我收到以下警告:

DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1, from 3
.1 onwards you will need to install prototype-rails to continue to use RJS templ
ates . (called from service at D:/Programs/Ruby/lib/ruby/1.9.1/webrick/httpserve
r.rb:111)

我怎么能避免收到此警告?

我用:

ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
Rails 3.0.9

2 个答案:

答案 0 :(得分:7)

config.action_view.debug_rjs中的环境中删除config/environments设置。默认情况下,它仅在config/environments/development.rb中定义。

答案 1 :(得分:1)

删除引用它的config/environments个文件中的一行。