From 6ce32b8bc46cbda2c412d13140e033b088a202f3 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Mon, 11 Feb 2013 14:39:26 -0500 Subject: [PATCH] Trivial: Was not finding files in public for errors due to missing extensions. --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d01c3ab3481..128320a331e 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -66,12 +66,12 @@ class ApplicationController < ActionController::Base # for now do a simple remap, we may look at cleaner ways of doing the render raise ActiveRecord::RecordNotFound else - render file: 'public/404', layout: false, status: 404 + render file: 'public/404.html', layout: false, status: 404 end end rescue_from Discourse::InvalidAccess do - render file: 'public/403', layout: false, status: 403 + render file: 'public/403.html', layout: false, status: 403 end def store_preloaded(key, json)