From 509c18eb139ead0d2e2f02f580ef04b28d874f48 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 8 Sep 2016 02:40:51 +0200 Subject: Fix local follows, 404 in logs --- config/environments/development.rb | 2 +- config/routes.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/environments/development.rb b/config/environments/development.rb index 288256dcf..d0ff03754 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -10,7 +10,7 @@ Rails.application.configure do config.eager_load = false # Show full error reports. - config.consider_all_requests_local= true + config.consider_all_requests_local = true # Enable/disable caching. By default caching is disabled. if Rails.root.join('tmp/caching-dev.txt').exist? diff --git a/config/routes.rb b/config/routes.rb index 9ad7a32e1..6201a4ee7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -72,4 +72,6 @@ Rails.application.routes.draw do end root 'home#index' + + match '*unmatched_route', via: :all, to: 'application#raise_not_found' end -- cgit