浏览 3912 次
锁定老帖子 主题:安装了Mongrel后多出来的提示信息
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2007-01-30
不过它的提示信息都是有关rails 2.0的. 目前才到rail 1.2.1,这个2.0的提示似乎早了点。 引用 DEPRECATION WARNING: The :dependent => true option is deprecated and will be rem oved from Rails 2.0. Please use :dependent => :destroy instead. See http://www .rubyonrails.org/deprecation for details. See http://www.rubyonrails.org/deprec ation for details. (called from has_many at c:/ruby/lib/ruby/gems/1.8/gems/activ erecord-1.15.1/lib/active_record/associations.rb:550) DEPRECATION WARNING: find_all is deprecated and will be removed from Rails 2.0 ( use find(:all, ...)) See http://www.rubyonrails.org/deprecation for details. (c alled from js at ./script/../config/../app/controllers/main_controller.rb:29) ( 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2007-01-30
这个只是提醒你这个api已经deprecated了而已
|
|
返回顶楼 | |
发表时间:2007-01-31
rails1.2最郁闷的是提示你deprecation,但是又没有不deprecation的解决办法,只好眼睁睁看着他一行一行打deprecation信息。
|
|
返回顶楼 | |
发表时间:2007-02-02
装个silenced_deprecation插件即可消除它
![]() http://rubyoo.com/blog/?p=3 |
|
返回顶楼 | |
发表时间:2007-02-04
那個只是要你把
:dependent => true 改成 :dependent => :destory 有的deprecation都會提供解決方式:P |
|
返回顶楼 | |