tap/app/views/admins/schulden.csv.erb

6 lines
176 B
Text
Raw Normal View History

2014-12-10 16:17:55 +01:00
<%- headers = ['nickname', 'schulden'] -%>
<%= CSV.generate_line headers %>
<%- @users.each do |user| -%>
<%= CSV.generate_line([user.nickname, user.balance]) %>
<%- end -%>