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

3 lines
234 B
Plaintext
Raw Normal View History

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