tap/app/views/admins/schulden.csv.erb
2014-12-10 16:17:55 +01:00

5 lines
176 B
Text

<%- headers = ['nickname', 'schulden'] -%>
<%= CSV.generate_line headers %>
<%- @users.each do |user| -%>
<%= CSV.generate_line([user.nickname, user.balance]) %>
<%- end -%>