Rails 3:弃用警告:config.action_view.debug_rjs 将在 3.1 中删除

发布于 2024-11-27 12:10:51 字数 434 浏览 0 评论 0原文

当我运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

乖乖哒 2024-12-04 12:10:52

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

Remove the config.action_view.debug_rjs setting from your environments in config/environments. By default it's only defined in config/environments/development.rb.

紙鸢 2024-12-04 12:10:52

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

Remove the line in one of your config/environments files that references it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文