gauge/app/views/conflicts/pivot.csv.erb

6 lines
320 B
Plaintext
Raw Normal View History

2016-10-10 20:20:56 +03:00
<%- headers = ['left', 'right', 'conflicts', '%'] -%>
<%= CSV.generate_line headers -%>
<%- @conflict_coefficients.each do |conflict_coefficient| -%>
<%= CSV.generate_line([conflict_coefficient.left, conflict_coefficient.right, conflict_coefficient.conflicts, conflict_coefficient.per_cent]).html_safe -%>
<%- end -%>