<?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: Checking for duplicate ActiveRecord objects</title>
	<atom:link href="http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/</link>
	<description>Rails, Firefox, Anime, Mac</description>
	<lastBuildDate>Wed, 08 Sep 2010 13:26:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: kriya</title>
		<link>http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/comment-page-1/#comment-600607</link>
		<dc:creator>kriya</dc:creator>
		<pubDate>Wed, 30 Apr 2008 11:01:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/#comment-600607</guid>
		<description>This is exactly what i need. Unfortunately i don&#039;t see the details of your plugin or how to use it. It&#039;s not very clear to me. (Sorry new to rails). Can you pls update with full details. Thank you.</description>
		<content:encoded><![CDATA[<p>This is exactly what i need. Unfortunately i don&#8217;t see the details of your plugin or how to use it. It&#8217;s not very clear to me. (Sorry new to rails). Can you pls update with full details. Thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: choonkeat</title>
		<link>http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/comment-page-1/#comment-140787</link>
		<dc:creator>choonkeat</dc:creator>
		<pubDate>Tue, 27 Mar 2007 03:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/#comment-140787</guid>
		<description>If you&#039;re using a version prior to 1.2, you might&#039;ve been bitten (like me) by the nil bug http://dev.rubyonrails.org/ticket/6548 where { :key =&gt; nil } generates this SQL statement 
&lt;code&gt;key = NULL&lt;/code&gt;
instead of
&lt;code&gt;key IS NULL&lt;/code&gt;
solution? introduce a monkey patch until your Rails upgrade</description>
		<content:encoded><![CDATA[<p>If you&#8217;re using a version prior to 1.2, you might&#8217;ve been bitten (like me) by the nil bug <a href="http://dev.rubyonrails.org/ticket/6548" rel="nofollow">http://dev.rubyonrails.org/ticket/6548</a> where { :key =&gt; nil } generates this SQL statement<br />
<code>key = NULL</code><br />
instead of<br />
<code>key IS NULL</code><br />
solution? introduce a monkey patch until your Rails upgrade</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chu Yeow</title>
		<link>http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/comment-page-1/#comment-140754</link>
		<dc:creator>Chu Yeow</dc:creator>
		<pubDate>Tue, 27 Mar 2007 02:06:27 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/#comment-140754</guid>
		<description>I actually did try
&lt;code&gt;Post.find(:all, :conditions =&gt; post.attributes)&lt;/code&gt;
first but it didn&#039;t work! Now I just tried it in &lt;code&gt;script/console&lt;/code&gt; and it works perfectly! Doh, need to look at what I was doing wrong.</description>
		<content:encoded><![CDATA[<p>I actually did try<br />
<code>Post.find(:all, :conditions => post.attributes)</code><br />
first but it didn&#8217;t work! Now I just tried it in <code>script/console</code> and it works perfectly! Doh, need to look at what I was doing wrong.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: choonkeat</title>
		<link>http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/comment-page-1/#comment-140745</link>
		<dc:creator>choonkeat</dc:creator>
		<pubDate>Tue, 27 Mar 2007 01:50:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.codefront.net/2007/03/27/checking-for-duplicate-activerecord-objects/#comment-140745</guid>
		<description>but what&#039;s wrong with 
&lt;code&gt;Post.find(:all, :conditions =&gt; post.attributes)&lt;/code&gt;
or,
&lt;code&gt;mallable_hash = new_post.attributes.dup&lt;/code&gt;
?</description>
		<content:encoded><![CDATA[<p>but what&#8217;s wrong with<br />
<code>Post.find(:all, :conditions =&gt; post.attributes)</code><br />
or,<br />
<code>mallable_hash = new_post.attributes.dup</code><br />
?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
