title: save string to file
body: <p>I've got a iteration (in my view):</p>
  
  <pre><code>(1..@count.to_i).each do |i|
     ...doing things...
    @bigtable &lt;&lt; @result[0..result.length-2]
  end
  </code></pre>
  
  <p>Every @result is a string. @bigtable has every @result from iterations.
  Now what I want:
  I want to save content from the @bigtable (after clickin a button) to .csv file (and choose where to save it on my hdd). And I want do it like every @result from @bigtable is in its own single line, like this (pseudo code):</p>
  
  <pre><code>@result string from @bigtable[0]
  @result string from @bigtable[1]
  etc.
  </code></pre>
  
  <p>Please, help</p>