From 28270cfda18a18841615c57d117cbea96db1c6ec Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 1 Feb 2009 14:39:13 +0100 Subject: fix for content_controller --- app/controllers/content_controller.rb | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/controllers/content_controller.rb') diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index a78b8b5..5312ecd 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -1,12 +1,18 @@ class ContentController < ApplicationController def render_page - path = params[:pagepath].join('/') + path = params[:page_path].join('/') @page = Node.find_page(path) # Replace with real 404 - render :status => 404 unless @page + unless @page + render( + :file => File.join(RAILS_ROOT, 'public', '404.html'), + :status => 404 + ) + end + end end -- cgit v1.3