问题描述
我是Rails 6的新手,但遇到了以上错误。请检查以下代码,并帮助我摆脱困境。谢谢!
has_many :coaches,->{where('max_unit > 0 and active = 1').order('trim(full_name)')},->{select((Account.column_names - ['photo_file']).map { |column_name| "`accounts`.`#{column_name}`"})},:through => :qualifications
回溯: ArgumentError(参数数量错误(给定3个,预期为1..2)):
app / models / language.rb:9:in
<class:Language>' app/models/language.rb:1:in
' app / models / account.rb:142:在manage_substitutions' app/controllers/extranet/homes_controller.rb:11:in
索引中
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)