thingspeak/app/views/feed/index.csv.erb
2014-02-17 12:05:39 -05:00

3 lines
245 B
Plaintext

<% if @success %><%= CSV.generate_line @csv_headers %><% @feed_output.each do |feed| %><% row = [] %><% @csv_headers.each do |attr| %><% row.push(feed.send(attr)) %><% end %><%= CSV.generate_line(row).html_safe %><% end %><% else %>-1<% end %>