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