当我尝试保存一定的ActiveRecord我的情况,我得到这个验证错误奇怪加载ActiveModel的Rails ::错误:...必须大于{{count}}个
"Weight must be greater than {{count}}"
模型文件指定命令
validates_numericality_of :weight, :greater_than => 10, :less_than_or_equal_to => 900, :unless => :is_spia?
那么,为什么错误读取{{count}}
而不只是10
?对此有何正确的做法?
SYS:Rails的Ruby的2.3.5 1.8.7
已删除我的答案...我的阅读不够近,不够好。 – ScottJShea 2012-03-27 16:45:08