當我嘗試保存一定的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