chore: specific 422 error page

This commit is contained in:
Colin Darie 2024-04-09 00:00:31 +02:00
parent 5b98fd7c6d
commit a93a4cd5ce
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
6 changed files with 57 additions and 59 deletions

View file

@ -16,6 +16,7 @@ class ErrorsController < ApplicationController
end
def not_found = render_error 404
def unprocessable_entity = render_error 422
def show # generic page for others errors
@status = params[:status].to_i