From 402529c60e883fcb8f481a53b30407b1bcaef77c Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 5 Jul 2014 20:16:57 +0200 Subject: [PATCH] Fix 404 handling on docs pages --- app/controllers/docs_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/docs_controller.rb b/app/controllers/docs_controller.rb index c246b15..9ce7e71 100644 --- a/app/controllers/docs_controller.rb +++ b/app/controllers/docs_controller.rb @@ -1,7 +1,7 @@ class DocsController < ApplicationController layout 'docs' - rescue_from ActionView::MissingTemplate, :with => :not_found + rescue_from ActionView::MissingTemplate, with: :handle_not_found def show @current_category = params[:page].to_sym