`
muyu
  • 浏览: 218583 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

wrong number of arguments的怪异错误

阅读更多

页面出现一个大大的“500 Internel Server Error”,从日志中查到原因为

 

wrong number of arguments (1 for 0)

 

后来,查资料,从http://lightyror.thegiive.net/2006/08/rails_4307.html 中发现,我的action的名字与Rails冲突了,比如,我在做网银支付,按照文档,我建了两个action:send、receive。结果冲突了,于是send总是被rails认为,它是rails自带的send,所以参数个数一直有错!

 

按照资料显示,以下

 

display
format
load
send
system
process
timeout
有些名字是 DB 裡面的column不能取的
notify
open
quote
type

 

以后可要注意啦

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics