From b32d931a2b9a2a646ab59112143f800d97a1fa88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 17 Aug 2019 12:24:13 +0200 Subject: [PATCH] Use absolute path for "render file" --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 1d70ea6..a4d430f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -45,6 +45,6 @@ class ApplicationController < ActionController::Base end def render_404 - render file: "#{Rails.root}/public/404", status: :not_found + render file: "#{Rails.root}/public/404.html", status: :not_found end end