간단한 양식을 사용하여 필드의 전체 오류 메시지를 어떻게 출력합니까? 레일 상당량 : <%= 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)을/레일 4.1.1
을 변경! –
내가 속였어. 나는 그것을 작동하게 만들 수 없었다. 그래서 이니셜 라이저에서 자동 오류를 비활성화하고 각 필드 아래에 f.full_error : 토큰을 삽입했습니다. 그것이 작동하더라도, 나는 차라리 자동 버전 작업을 가지고있다 ... – fyz