Replace obsolete HTTP status code :unprocessable_entity
The new naming is :unprocessable_content and required by Rack 3.1+
This commit is contained in:

committed by
Sebastian Serth

parent
4e1e8c0f4d
commit
092487344a
@ -47,7 +47,7 @@ class ErrorTemplateAttributesController < ApplicationController
|
||||
format.json { render :show, status: :created, location: @error_template_attribute }
|
||||
else
|
||||
format.html { render :new }
|
||||
format.json { render json: @error_template_attribute.errors, status: :unprocessable_entity }
|
||||
format.json { render json: @error_template_attribute.errors, status: :unprocessable_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -64,7 +64,7 @@ class ErrorTemplateAttributesController < ApplicationController
|
||||
format.json { render :show, status: :ok, location: @error_template_attribute }
|
||||
else
|
||||
format.html { render :edit }
|
||||
format.json { render json: @error_template_attribute.errors, status: :unprocessable_entity }
|
||||
format.json { render json: @error_template_attribute.errors, status: :unprocessable_content }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user