Rails 3:弃用警告:config.action_view.debug_rjs 将在 3.1 中删除
当我运行 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
When I run rails s
I got the following warning:
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)
How could I avoid getting this warning ?
I use:
ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
Rails 3.0.9
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从
config/environments
中的环境中删除config.action_view.debug_rjs
设置。默认情况下,它仅在 config/environments/development.rb 中定义。Remove the
config.action_view.debug_rjs
setting from your environments inconfig/environments
. By default it's only defined inconfig/environments/development.rb
.删除引用它的
config/environments
文件之一中的行。Remove the line in one of your
config/environments
files that references it.