The file(s) <%= total_shown = 20 file_sets.first(total_shown) .map { |fs| link_to(fs, file_set_url(fs)) } .tap { |fs| fs << '...' if file_sets.length > total_shown } .join(', ') %> have been saved.