thingspeak/app/views/feed/index.csv.erb

3 lines
245 B
Plaintext
Raw Permalink Normal View History

<% 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 %>
2011-03-27 22:56:15 +02:00