From d3e09a2776884fe9378320641839a49517c62406 Mon Sep 17 00:00:00 2001 From: f Date: Fri, 6 Sep 2024 13:32:13 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20evitar=20generar=20error=20de=20traducci?= =?UTF-8?q?=C3=B3n=20al=20perder=20acceso=20a=20un=20sitio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/posts_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 4aa2c8d0..7974d317 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -15,6 +15,8 @@ class PostsController < ApplicationController # Las URLs siempre llevan el idioma actual o el de le usuarie def default_url_options { locale: locale } + rescue SiteNotFound + {} end # @todo Mover a tu propio scope