clarion/app/views/management/volunteers/index.csv.erb
2016-10-09 07:17:34 +03:00

17 lines
829 B
Plaintext

<%- csv_headers = %w{id name email language unique_id phone tshirt_size tshirt_cut food_preferences previous_experience notes 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_teams.map(&:name).join(', ')]).html_safe -%>
<%- end -%>