thingspeak/app/views/feed/index.csv.erb
2011-03-27 16:56:15 -04:00

3 lines
234 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 %><% end %><% else %>-1<% end %>