Moh*_*ain 3 ruby-on-rails ruby-on-rails-3
我收到了警告.
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 templates . (called from <top (required)> at /Users/me/projects/my_app/config/environment.rb:5)
Run Code Online (Sandbox Code Playgroud)
任何人都可以打电话给我如何解决这个问题.我没有使用原型我使用标准的jquery js文件与jquery.rails.js而不是gem.
rails -v
Rails 3.0.10
ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.1.0]
rvm -v
rvm 1.8.0 by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.beginrescueend.com/]
Run Code Online (Sandbox Code Playgroud)
警告是由配置文件引起的.寻找像或中的一行config.action_view.debug_rjs = true,并将其评论出来.如果您还没有使用rjs视图,那么无论如何您都不会错过开发模式下的调试(默认情况下它在生产中是关闭的){app_root}/config/environments/development.rbproduction.rb
| 归档时间: |
|
| 查看次数: |
1372 次 |
| 最近记录: |