<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Data Seeding in Ruby on Rails 2.3.4</title>
	<atom:link href="http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/</link>
	<description>Building Software Better . . . One Programmer at a Time</description>
	<lastBuildDate>Sun, 08 Aug 2010 23:45:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Kip</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-131</link>
		<dc:creator>Kip</dc:creator>
		<pubDate>Sun, 07 Mar 2010 00:08:14 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-131</guid>
		<description>I&#039;m using this method, but it&#039;s not working when running tests.  The &quot;rake test&quot; command wipes the database prior to running them.  I even tried putting &quot;require RAILS_ROOT + &#039;/db/seeds&#039;&quot; in the test_helper.rb file, but that didn&#039;t work.  How can I get the seed data to be loaded prior to the tests?</description>
		<content:encoded><![CDATA[<p>I&#8217;m using this method, but it&#8217;s not working when running tests.  The &#8220;rake test&#8221; command wipes the database prior to running them.  I even tried putting &#8220;require RAILS_ROOT + &#8216;/db/seeds&#8217;&#8221; in the test_helper.rb file, but that didn&#8217;t work.  How can I get the seed data to be loaded prior to the tests?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-130</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Fri, 23 Oct 2009 17:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-130</guid>
		<description>I fixed it. Thanks for pointing that out.</description>
		<content:encoded><![CDATA[<p>I fixed it. Thanks for pointing that out.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-129</link>
		<dc:creator>Jamie</dc:creator>
		<pubDate>Fri, 23 Oct 2009 00:06:22 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-129</guid>
		<description>I&#039;d just like to mention that the file needs to be db/seeds.rb rather than db/seed.rb as you said...spent hours trying to figure out why it wouldn&#039;t work.</description>
		<content:encoded><![CDATA[<p>I&#8217;d just like to mention that the file needs to be db/seeds.rb rather than db/seed.rb as you said&#8230;spent hours trying to figure out why it wouldn&#8217;t work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chuck</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-128</link>
		<dc:creator>Chuck</dc:creator>
		<pubDate>Thu, 24 Sep 2009 01:14:41 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-128</guid>
		<description>I&#039;ll probably have a look at seed_fu, but if you&#039;re worried about duplicate entries by running the rake tasks multiple times, you could use the Model.find_or_create_by_... methods. Are there other features to seed_fu?</description>
		<content:encoded><![CDATA[<p>I&#8217;ll probably have a look at seed_fu, but if you&#8217;re worried about duplicate entries by running the rake tasks multiple times, you could use the Model.find_or_create_by_&#8230; methods. Are there other features to seed_fu?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-127</link>
		<dc:creator>Bill</dc:creator>
		<pubDate>Wed, 23 Sep 2009 23:54:54 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-127</guid>
		<description>@mrkris:  It takes 1 line to wipe out any models you do not want in seed.rb.  Can you point to advantages of seed_fu?</description>
		<content:encoded><![CDATA[<p>@mrkris:  It takes 1 line to wipe out any models you do not want in seed.rb.  Can you point to advantages of seed_fu?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-126</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Wed, 23 Sep 2009 19:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-126</guid>
		<description>I originally started backporting Rails 3 seeds before 2.3.4 was released.

http://github.com/n3bulous/seed4rails2/

The main benefits are handling all your seed data as YAML and being able to order them by just using a default seed.rb file, like:

http://github.com/n3bulous/seed4rails2/blob/master/seed4r2.rb

Still needs some improvements, but I&#039;ve been short on time and its low on the priority list.  #1 pending change is a rake task to generate a timestamped yaml file.  #2 task is migrating my local day-job changes to the github version.</description>
		<content:encoded><![CDATA[<p>I originally started backporting Rails 3 seeds before 2.3.4 was released.</p>
<p><a href="http://github.com/n3bulous/seed4rails2/" rel="nofollow">http://github.com/n3bulous/seed4rails2/</a></p>
<p>The main benefits are handling all your seed data as YAML and being able to order them by just using a default seed.rb file, like:</p>
<p><a href="http://github.com/n3bulous/seed4rails2/blob/master/seed4r2.rb" rel="nofollow">http://github.com/n3bulous/seed4rails2/blob/master/seed4r2.rb</a></p>
<p>Still needs some improvements, but I&#8217;ve been short on time and its low on the priority list.  #1 pending change is a rake task to generate a timestamped yaml file.  #2 task is migrating my local day-job changes to the github version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrkris</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-125</link>
		<dc:creator>mrkris</dc:creator>
		<pubDate>Wed, 23 Sep 2009 16:44:53 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-125</guid>
		<description>I was rather let down with the implementation of the seeding. If you run the seeding multiple times, it will create the data multiple times, unless you write the code to do otherwise. I don&#039;t like this approach personally. I recommend you check out seed_fu, it&#039;s what I&#039;ve been using for quite a while and will continue to use until Rails implements a larger featureset.</description>
		<content:encoded><![CDATA[<p>I was rather let down with the implementation of the seeding. If you run the seeding multiple times, it will create the data multiple times, unless you write the code to do otherwise. I don&#8217;t like this approach personally. I recommend you check out seed_fu, it&#8217;s what I&#8217;ve been using for quite a while and will continue to use until Rails implements a larger featureset.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tweets that mention Data Seeding in Ruby on Rails 2.3.4 -- Topsy.com</title>
		<link>http://teachmetocode.com/articles/data-seeding-in-ruby-on-rails-2-3-4/#comment-124</link>
		<dc:creator>Tweets that mention Data Seeding in Ruby on Rails 2.3.4 -- Topsy.com</dc:creator>
		<pubDate>Wed, 23 Sep 2009 03:32:27 +0000</pubDate>
		<guid isPermaLink="false">http://charlesmaxwood.com/?p=425#comment-124</guid>
		<description>[...] This post was mentioned on Twitter by Chuck Wood. Chuck Wood said: Data Seeding in Ruby on Rails 2.3.4 http://bit.ly/yrRaJ #rubyonrails #rails [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was mentioned on Twitter by Chuck Wood. Chuck Wood said: Data Seeding in Ruby on Rails 2.3.4 <a href="http://bit.ly/yrRaJ" rel="nofollow">http://bit.ly/yrRaJ</a> #rubyonrails #rails [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
