5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 17:06:21 +00:00

fix: prevenir doble renderización

closes #15564
This commit is contained in:
f 2024-03-13 16:39:58 -03:00
parent 630f6b31fc
commit 4dd75eedad
No known key found for this signature in database

View file

@ -77,6 +77,11 @@ class ApplicationController < ActionController::Base
# Muestra una página 404 # Muestra una página 404
def page_not_found def page_not_found
self.response_body = nil
@_response_body = nil
headers.delete('Location')
render 'application/page_not_found', status: :not_found render 'application/page_not_found', status: :not_found
end end