Need to quickly export a collection as a CSV? Ruby has an awesome class just for this (named CSV of course). With this class you can quickly output a csv string which can then be imported into Excel, Libre Office, etc.
Here's a quick example that is displaying some user information. **Note**: the last line is important for displaying the csv string without the
Now just copy paste the string from your console into a new spreadsheet and it should properly delineate the columns and data. Easy!