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

本文记录了在Rails 1.2.1环境下使用Mongrel服务器时出现的关于Rails 2.0的提示信息详情。这些提示包括关于has_many依赖选项的废弃警告以及find_all方法的弃用建议。
安装了Mongrel之后多了不少提示信息,原先是用webrick并没有这样的提示。
不过它的提示信息都是有关rails 2.0的. 目前才到rail 1.2.1,这个2.0的提示似乎早了点。

[quote]
DEPRECATION WARNING: [color=red]The :dependent => true option is deprecated and will be rem
oved from Rails 2.0[/color]. 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)
([/quote]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值