From cba0d03d8604ad1f24caab5d8947f0aea235a82e Mon Sep 17 00:00:00 2001 From: Tatiana Smirnova Date: Thu, 10 Oct 2024 23:41:42 +0200 Subject: [PATCH] NOP-12 p.2 - routing error to 404 (#1170) --- config/routes.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/routes.rb b/config/routes.rb index ac35dcdd..f203770a 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -52,5 +52,7 @@ root to: "catalog#index" + match '*unmatched', to: 'errors#not_found', via: :all + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html end