From f84727c03eb79df692bfe38c67bb26becf7a9d5a Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Fri, 21 Jan 2005 19:44:34 +0000 Subject: [PATCH] explicitly tell to Rails not to render a layout for file download actions (it shouldn't matter, but...) --- app/controllers/wiki_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb index 0f711ffc..f8355a41 100755 --- a/app/controllers/wiki_controller.rb +++ b/app/controllers/wiki_controller.rb @@ -4,7 +4,7 @@ require 'redcloth_for_tex' class WikiController < ApplicationController - layout 'default', :except => [:rss_feed, :rss_with_headlines, :tex_web, :tex] + layout 'default', :except => [:rss_feed, :rss_with_headlines, :tex, :export_tex, :export_html] before_filter :pre_process def index @@ -317,7 +317,7 @@ class WikiController < ApplicationController end FileUtils.rm_rf(Dir[WikiService.storage_path + file_prefix + '*.zip']) FileUtils.mv(tmp_path, file_path) - send_file(file_path, :type => 'application/zip') + send_file(file_path, :type => 'application/zip', :streaming => false) end def export_web_to_tex(file_path)