Commit 0cd81fccd1b17721a26ed7ba035e7da9c0e47dac

Authored by Victor Costa
1 parent 299fbfe0

Fix article rendering for UploadedFile

app/controllers/public/content_viewer_controller.rb
@@ -69,7 +69,7 @@ class ContentViewerController < ApplicationController @@ -69,7 +69,7 @@ class ContentViewerController < ApplicationController
69 if params[:slideshow] 69 if params[:slideshow]
70 render :action => 'slideshow', :layout => 'slideshow' 70 render :action => 'slideshow', :layout => 'slideshow'
71 else 71 else
72 - render :file => @page.view_page, :layout => true 72 + render :file => @page.view_page, :layout => true, :formats => [:html]
73 end 73 end
74 end 74 end
75 75