3
私のアプリケーションにカスタム422ページを表示しようとしています。 rescue_from
宣言で取り上げる例外クラスは何ですか?rescue_fromで422エラーをキャッチするために使用するExceptionクラスは何ですか?
私はRecordNotFoundの例外を処理する方法この:
rescue_from ActiveRecord::RecordNotFound, :with => :render_404