diff options
Diffstat (limited to 'app/controllers/content_controller.rb')
| -rw-r--r-- | app/controllers/content_controller.rb | 7 |
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 @@ | |||
| 1 | class ContentController < ApplicationController | 1 | class 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 | ||
