From be47a4bbeac59d85af16b5e83e10ff242628519d Mon Sep 17 00:00:00 2001 From: hukl Date: Thu, 29 Jan 2009 22:12:11 +0100 Subject: added node model to make basic functional tests pass. added awesome_nested_set plugin --- app/controllers/content_controller.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'app/controllers/content_controller.rb') diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index afa093c..8059fab 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -1,5 +1,12 @@ class ContentController < ApplicationController + def render_page + path = params[:page_path].join('/') + + @node = Node.find_by_unique_name(path) + + # Replace with real 404 + render :status => 404 unless @node end end -- cgit v1.3