diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a57b4d70..0a08ec43 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -96,9 +96,9 @@ class ApplicationController < ActionController::Base end # Render the page - def render_page(param) + def render_page(param={}) if @item - render :text => process_page(@item, param[:id],param), :layout => 'page_layout' + render :text => process_page(@item, param[:id], param), :layout => 'page_layout' else render :text => '404 Not Found' end