summaryrefslogtreecommitdiff
path: root/app/controllers/content_controller.rb
diff options
context:
space:
mode:
authorhukl <hukl@eight.intern.artcom.de>2009-02-03 16:47:43 +0100
committerhukl <hukl@eight.intern.artcom.de>2009-02-03 16:47:43 +0100
commit1902c4bf975a5c1decd199a5190b04d08a2e4760 (patch)
tree11a6983e98567f6894abb7c353e39ea30da458bb /app/controllers/content_controller.rb
parent91b6089337e59d0c30a0112a5689f476d3c2f013 (diff)
added lots of comments to describe what the
methods are doing. this will get everyone a better start. I hope
Diffstat (limited to 'app/controllers/content_controller.rb')
-rw-r--r--app/controllers/content_controller.rb7
1 files changed, 6 insertions, 1 deletions
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 @@
1class ContentController < ApplicationController 1class ContentController < ApplicationController
2 2
3 # This is the method that renders most of the the public content. It recieves
4 # a :locale and a :page_path parameter through the params hash. It looks up
5 # the node with the corresponding unique_name attribute. The method doesn't
6 # return a node though, the node is really a proxy object for pages. It
7 # returns the most recent page associated to this node instead.
3 def render_page 8 def render_page
4 path = params[:page_path].join('/') 9 path = params[:page_path].join('/')
5 10