explicitly tell to Rails not to render a layout for file download actions (it shouldn't matter, but...)
This commit is contained in:
parent
88d7dc832d
commit
f84727c03e
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue