
Ruby on Rails中,ActiveRecord的save方法错误参数数量为0时,如何表示只有一个参数?
本文共计2496个文字,预计阅读时间需要10分钟。我在使用Rails 4时遇到了以下错误:`wrong number of arguments (0 for 1)`,在控制器中执行此代码时:rubyclass CommentsControl
共收录篇相关文章

本文共计2496个文字,预计阅读时间需要10分钟。我在使用Rails 4时遇到了以下错误:`wrong number of arguments (0 for 1)`,在控制器中执行此代码时:rubyclass CommentsControl