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

3 lines
169 B
Text

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