export feature for tracks and booths are done

This commit is contained in:
Your Name 2017-10-09 17:46:39 +05:30 committed by Stella Rouzi
parent be1992a03a
commit e99287d18a
22 changed files with 418 additions and 3 deletions

View file

@ -0,0 +1,19 @@
- headers = ['Booth ID',
'Title',
'Description',
'Reasoning',
'Submitter Name',
'Submitter Relationship',
'Website Url',
'State']
= CSV.generate_line ['All booths']
= CSV.generate_line headers
- @booths.confirmed.each do |booth|
= CSV.generate_line([booth.id,
booth.title,
booth.description,
booth.reasoning,
booth.submitter.name,
booth.submitter_relationship,
booth.website_url,
booth.state]).html_safe