3
내 응용 프로그램에 사용자 정의 422 페이지를 표시하려고합니다. rescue_from
선언에서 내가 알아야 할 Exception 클래스는 무엇입니까?rescue_from에서 422 개의 오류를 catch하는 데 사용할 Exception 클래스는 무엇입니까?
나는 RecordNotFound 예외 처리하는 방법이 :
rescue_from ActiveRecord::RecordNotFound, :with => :render_404