如何使用簡單形式輸出字段的完整錯誤消息?等效軌:<%= RESOURCE.errors.full_messages %>
以簡單的形式顯示完整的錯誤消息?
例如顯示此:
"Email has already been taken",
"Password confirmation doesn't match Password",
"Password is too short (minimum is 8 characters)"
代替:f.error_notification
"has already been taken",
"doesn't match Password",
"is too short (minimum is 8 characters)"
simple_form(3.0.2)/ Rails的4.1.1
很想知道這個問題的答案呢! –
我被騙了。我無法讓它工作。所以我在初始化器中禁用了自動錯誤,並在每個字段下插入了f.full_error:token。雖然它的工作原理,我仍然有汽車版本.... – fyz