widget link followed by setting

This commit is contained in:
Matt K. Fu committed 2013-04-17 14:19:32 +08:00
1 parent 28f0df5da8
commit 3098496083
6 files changed
+22 -10

No files matched your search

+2 -2
View File
@@ -101,10 +101,10 @@ class ApplicationController < ActionController::Base
end
# Render the page
def render_page
def render_page(args=nil)
if @item
respond_to do |format|
format.html { render :text => parse_page_content(@item), :layout => 'page_layout' }
format.html { render :text => parse_page_content(@item,args), :layout => 'page_layout' }
format.rss { render_main_rss }
format.mobile { redirect_to mobile_path(:app => params[:app]) }
end