<%- csv_headers = %w{id name email language unique_id phone tshirt_size tshirt_cut food_preferences previous_experience notes team additional_teams} -%> <%= CSV.generate_line(csv_headers).html_safe -%> <%- @volunteers.each do |volunteer| -%> <%= CSV.generate_line([volunteer.id, volunteer.name, volunteer.email, volunteer.language, volunteer.unique_id, volunteer.phone, volunteer.tshirt_size, volunteer.tshirt_cut, volunteer.food_preferences, volunteer.previous_experience, volunteer.notes, volunteer.volunteer_team.name, volunteer.additional_volunteer_teams.map(&:name).join(', ')]).html_safe -%> <%- end -%>