From a741152e33f6a681113818418ad0f898f2d04697 Mon Sep 17 00:00:00 2001 From: Azul Date: Mon, 20 Mar 2017 11:16:21 +0100 Subject: fix: 404 for missing pages template - fixes #9 --- app/controllers/pages_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers/pages_controller.rb') diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb index b9c601a..4508450 100644 --- a/app/controllers/pages_controller.rb +++ b/app/controllers/pages_controller.rb @@ -9,6 +9,8 @@ class PagesController < ApplicationController def show @show_navigation = false render page_name + rescue ActionView::MissingTemplate + raise ActionController::RoutingError.new('Not Found') end private -- cgit v1.2.3