Announcement preivew

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-04 15:50:45 +08:00
1 parent f6307abfbf
commit 453cb21066
15 files changed
+122 -44

No files matched your search

+2 -2
View File
@@ -96,9 +96,9 @@ class ApplicationController < ActionController::Base
end
# Render the page
def render_page(id = nil)
def render_page(param)
if @item
render :text => process_page(@item, id), :layout => 'page_layout'
render :text => process_page(@item, param[:id],param), :layout => 'page_layout'
else
render :text => '404 Not Found'
end