<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet type="text/xsl" href="http://www.bytemycode.com/rssformat.xsl"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title>byteMyCode: Snippet Revisions</title>
		<link>http://www.bytemycode.com</link>
		<description>Revisions for this snippet.</description>
		<pubDate>Fri, 05 Sep 2008 07:13:30 +0000</pubDate>
		<copyright>1998-2008 </copyright>
		<language>en-us</language>
		<image>
		      <link>http://www.bytemycode.com</link>
		      <url>http://www.bytemycode.com/img/rss_title.gif</url>
		      <title>byteMyCode</title>
		</image>

	
	<item>
		<title>Creating a fixture via ActiveRecord 1</title>
		<link>http://www.bytemycode.com/snippets/snippet/586/1/</link>
		<comments>http://www.bytemycode.com/snippets/snippet/586/comments/</comments>
		<pubDate>Thu, 08 Feb 2007 13:09:14 +0000</pubDate>
		<dc:creator>jeremec</dc:creator>
		<category>"ruby on rails", fixtures, rails, Ruby</category>
		<guid isPermaLink="false">http://www.bytemycode.com/snippets/snippet/586/</guid>
		<description>
			<![CDATA[
				<p>I'm in the process of writing test fixtures for our rails site.  A lot of my tests require authentication, so I've had to port our permissions system into a fixture.  Rather than type out all of the information for the fixture, I decided to create a nested loop that will take care of this for me.<br /><br />There's probably a rake task for this, but I wasn't able to find it, so I came up with my own solution.  You'll have to do a little cleanup when it's done, however some slight mods to this loop could even eliminate that.<img src="http://www.bytemycode.com/img/wysiwyg/emo-eek.gif" /></p>
			]]>
		</description>
	</item>

	
	</channel>
</rss>