From 1902c4bf975a5c1decd199a5190b04d08a2e4760 Mon Sep 17 00:00:00 2001 From: hukl Date: Tue, 3 Feb 2009 16:47:43 +0100 Subject: added lots of comments to describe what the methods are doing. this will get everyone a better start. I hope --- app/controllers/content_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'app/controllers/content_controller.rb') diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb index 278c5ab..0fa9832 100644 --- a/app/controllers/content_controller.rb +++ b/app/controllers/content_controller.rb @@ -1,5 +1,10 @@ class ContentController < ApplicationController - + + # This is the method that renders most of the the public content. It recieves + # a :locale and a :page_path parameter through the params hash. It looks up + # the node with the corresponding unique_name attribute. The method doesn't + # return a node though, the node is really a proxy object for pages. It + # returns the most recent page associated to this node instead. def render_page path = params[:page_path].join('/') -- cgit v1.3