def download
@file_name = params[:filename]
if File.exists?("#{Rails.root}/public/files/#{@file_name}")
send_file "#{Rails.root}/public/files/#{@file_name}" , disposition: 'attachment'
else
flash[:notice]="File not exist"
end
end
如题,下载 中文文件,名称会出现 求帮助