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

3 lines
193 B
Plaintext

<% 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 %>