<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>Bryan Helmkamp - Export Rails ActiveRecords to CSV Comments</title>
  <id>tag:www.brynary.com,2009:/2007/4/28/export-activerecords-to-csv/comments</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv/comments.xml" rel="self" type="application/atom+xml"/>
  <link href="/2007/4/28/export-activerecords-to-csv" rel="alternate" type="text/html"/>
  <updated>2007-08-27T06:04:22Z</updated>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Abhay</name>
    </author>
    <id>tag:www.brynary.com,2007-04-28:65:890</id>
    <published>2007-07-22T20:52:47Z</published>
    <updated>2007-07-22T20:52:47Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv" rel="alternate" type="text/html"/>
    <title>Comment on 'Export Rails ActiveRecords to CSV' by Abhay</title>
<content type="html">&lt;p&gt;This is interesting. &lt;a href=&quot;http://swivel.com&quot;&gt;We&lt;/a&gt; actually use a &lt;span class=&quot;caps&quot;&gt;SQL&lt;/span&gt; query (SELECT &#8230; &lt;span class=&quot;caps&quot;&gt;INTO OUTFILE&lt;/span&gt;) for our csv exports. Since the data is already there in database, we like to keep rails mostly away from it.&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Dav</name>
    </author>
    <id>tag:www.brynary.com,2007-04-28:65:319</id>
    <published>2007-06-29T14:57:15Z</published>
    <updated>2007-06-29T14:57:15Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv" rel="alternate" type="text/html"/>
    <title>Comment on 'Export Rails ActiveRecords to CSV' by Dav</title>
<content type="html">&lt;p&gt;Uhm, is it just the day, or why does the code refuse to load when put in lib.&lt;/p&gt;


	&lt;p&gt;printed the config.load_paths and lib wasn&#8217;t there.&lt;/p&gt;


	&lt;p&gt;added {RAILS_ROOT}/lib&lt;/p&gt;


	&lt;p&gt;still no Array.to_csv&lt;/p&gt;


	&lt;p&gt;hmm&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>Bryan Helmkamp</name>
    </author>
    <id>tag:www.brynary.com,2007-04-28:65:68</id>
    <published>2007-05-18T16:42:46Z</published>
    <updated>2007-05-18T16:42:46Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv" rel="alternate" type="text/html"/>
    <title>Comment on 'Export Rails ActiveRecords to CSV' by Bryan Helmkamp</title>
<content type="html">&lt;p&gt;John&#8212;I put all of the code (for both AR::Base and Array) in a file in lib/exportable.rb&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://www.brynary.com/">
    <author>
      <name>John</name>
    </author>
    <id>tag:www.brynary.com,2007-04-28:65:67</id>
    <published>2007-05-14T15:37:23Z</published>
    <updated>2007-05-14T15:37:23Z</updated>
    <category term="Rails"/>
    <category term="Ruby"/>
    <link href="http://www.brynary.com/2007/4/28/export-activerecords-to-csv" rel="alternate" type="text/html"/>
    <title>Comment on 'Export Rails ActiveRecords to CSV' by John</title>
<content type="html">&lt;p&gt;Where in your Rails project do you put the ActiveRecord::Base and Array definitions?  And do you put these in the same file, or in separate active_record.rb and array.rb files?&lt;/p&gt;


	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;TIA&lt;/span&gt;&#8230;&lt;/p&gt;</content>  </entry>
</feed>
