Fix 404 handling on docs pages

This commit is contained in:
Marcin Kulik 2014-07-05 20:16:57 +02:00
parent 7921f5e729
commit 402529c60e

View File

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