<% unless @mut_down_files %> <h1>Download Status:</h1> <%= @error.class %> <% else %> <h1>下载文件包太大,分成<%= @mut_down_files.count %>个下载包</h1> <ul> <% @mut_down_files.each_with_index do |file,i| %> <li><%= link_to "第#{i+1}个文件包", zipdown_download_path(file: File.basename(file)) %></li> <% end %> </ul> <% end %>