当前位置: 首页 > 工具软件 > ActiveRecord > 使用案例 >

ActiveRecord::RecordInvalid (translation missing: zh, activerecord, errors, messages, record_invalid

皮嘉德
2023-12-01

Rails 出现ActiveRecord::RecordInvalid (translation missing: zh, activerecord, errors, messages, record_invalid错误


other: "有 {{count}} 个错误发生导致「{{model}}」无法被保存。"
body: "如下字段出现错误:"
messages:
+        record_invalid: "交验失败: {{errors}}"
inclusion: "不包含于列表中"
exclusion: "是保留关键字"
invalid: "是无效的"
@@ -128,6 +129,3 @@
less_than_or_equal_to: "必须小于或等于 {{count}}"
odd: "必须为单数"
even: "必须为双数"
-


转自:https://github.com/svenfuchs/rails-i18n/commit/569efe99b172f92a1bada1293ef2ea7507116c76

 类似资料: