`
jack
  • 浏览: 390699 次
  • 来自: 温州
社区版块
存档分类
最新评论

安装了Mongrel后多出来的提示信息

阅读更多
安装了Mongrel之后多了不少提示信息,原先是用webrick并没有这样的提示。
不过它的提示信息都是有关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)
(
分享到:
评论
4 楼 cfc 2007-02-04  
那個只是要你把
:dependent => true
改成
:dependent => :destory

有的deprecation都會提供解決方式:P
3 楼 axgle 2007-02-02  
装个silenced_deprecation插件即可消除它 
http://rubyoo.com/blog/?p=3
2 楼 robbin 2007-01-31  
rails1.2最郁闷的是提示你deprecation,但是又没有不deprecation的解决办法,只好眼睁睁看着他一行一行打deprecation信息。
1 楼 xangd 2007-01-30  
这个只是提醒你这个api已经deprecated了而已

相关推荐

Global site tag (gtag.js) - Google Analytics