rails 2.0 destroy method not working

刚把自己的rails app升级到rails 2.0版本。
发现 destroy method 不好用了。

程序上没有什么特殊的,就是普通的destroy method.
[code]
def destroy
Recipe.find(params[:id]).destroy
redirect_to :action => 'list'
end
[/code]

数据不被删除,然后转到了list action。
log 里面有这样一行。

[code]
Filter chain halted as [#<ActionController::Filters::ClassMethods::ProcFilter:0xb6b60ed4 @filter=#<Proc:0xb6d012e8@/usr/lib/ruby/gems/1.8/gems/actionpack-2.0.1/lib/action_controller/verification.rb:75>>] rendered_or_redirected.
[/code]

在网上查了查,[url]http://www.oreillynet.com/cs/user/view/cs_msg/92284[/url]跟我的情况一样。

但是我的firefox 已经 enable javascript了。
而且我在IE 7上也测试了,还是不行。

郁闷。
我把destroy 改成 delete 或者其他的名字。
就好使了。

那个filter chain是个什么东东呢?
请教一下,这是不是一个rails bug.该怎么处理啊。

谢谢
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值