title: CSV export based on ajax
body: <p>So I have a problem which I've been stuck on. I have a page, so say a table of student's and all their information: grades, gender etc. Now I have a feature on that page that can filter out a attribute. So, through ajax I re-render the table if I want to just see all the boys. Now I have a download csv link at the bottom of the page, but I want to make it dynamic based on the filtering. I am not sure how to go about this.</p>
  
  <p>I've tried using gon, gon.watch but to no success.</p>