开发者

Rails 3: DEPRECATION WARNING: config.action_view.debug_rjs will be removed in 3.1

开发者 https://www.devze.com 2023-03-24 09:56 出处:网络
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

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 开发者_如何学GoI avoid getting this warning ?

I use:

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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号