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

4 lines
169 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 %>