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

3 lines
193 B
Plaintext
Raw Normal View History

2011-03-27 22:56:15 +02:00
<% if @success %><%= CSV.generate_line @csv_headers %><% row = [] %><% @csv_headers.each do |attr| %><% row.push(@feed.send(attr)) %><% end %><%= CSV.generate_line row %><% else %>-1<% end %>