Use absolute path for "render file"

This commit is contained in:
Jérémy Lecour 2019-08-17 12:24:13 +02:00
parent 3a89df9ddf
commit b32d931a2b
1 changed files with 1 additions and 1 deletions

View File

@ -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