diff --git a/app/controllers/page_contents_controller.rb b/app/controllers/page_contents_controller.rb index 17e4730..1c35de9 100644 --- a/app/controllers/page_contents_controller.rb +++ b/app/controllers/page_contents_controller.rb @@ -3,7 +3,7 @@ class PageContentsController < OrbitAdminController params = OrbitHelper.params page = Page.where(:page_id => params[:page_id]).first { - "html" => page.page_contexts.last.content + "html" => (page.page_contexts.last.content rescue "") } end end \ No newline at end of file