Create CSV file with data from my model : <p>I have a user model with name and id.</p>

<p>I want to store the of all the columns in users to a csv file.</p>

<p>How do I use CSV.generate function to do that?</p>
