<?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"
	>
<channel>
	<title>Comments on: ActiveRecord finder: Now we can use hash as conditions</title>
	<atom:link href="http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/feed/" rel="self" type="application/rss+xml" />
	<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/</link>
	<description>Its all about Ruby On Rails</description>
	<pubDate>Thu, 04 Dec 2008 02:36:16 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Akhil Bansal</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-299</link>
		<dc:creator>Akhil Bansal</dc:creator>
		<pubDate>Thu, 03 May 2007 13:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-299</guid>
		<description>I don't have exact idea when it was introduced, but it was near  rails 1.2.0</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have exact idea when it was introduced, but it was near  rails 1.2.0</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JFSIII</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-298</link>
		<dc:creator>JFSIII</dc:creator>
		<pubDate>Thu, 03 May 2007 11:55:47 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-298</guid>
		<description>This is great. I've long thought the current way was cumbersome and not keeping with The Rails Way.

I mean, nearly everything else is Model.method(:param =&#38;gt; :value) except find().

When I say not keeping with The Rails Way, I mean that it's putting the user right into the muck.  You don't write SQL anywhere else in the app (excluding find_by_sql()), so how can we expect a user to know how to properly format a WHERE clause?

Again, great news.  In which version of Rails will this appear?</description>
		<content:encoded><![CDATA[<p>This is great. I&#8217;ve long thought the current way was cumbersome and not keeping with The Rails Way.</p>
<p>I mean, nearly everything else is Model.method(:param =&#38;gt; :value) except find().</p>
<p>When I say not keeping with The Rails Way, I mean that it&#8217;s putting the user right into the muck.  You don&#8217;t write SQL anywhere else in the app (excluding find_by_sql()), so how can we expect a user to know how to properly format a WHERE clause?</p>
<p>Again, great news.  In which version of Rails will this appear?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akhil Bansal</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-297</link>
		<dc:creator>Akhil Bansal</dc:creator>
		<pubDate>Wed, 28 Feb 2007 04:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-297</guid>
		<description>Hi zerohalo,
Try this for OR condition as:

:conditions=&gt;["firstname =&gt;:fname OR lastname =&gt; :lname", {:fname=&gt; @fname, :lname =&gt; @lname}]</description>
		<content:encoded><![CDATA[<p>Hi zerohalo,<br />
Try this for OR condition as:</p>
<p>:conditions=>["firstname =>:fname OR lastname => :lname", {:fname=> @fname, :lname => @lname}]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Akhil Bansal</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-296</link>
		<dc:creator>Akhil Bansal</dc:creator>
		<pubDate>Sat, 24 Feb 2007 06:22:01 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-296</guid>
		<description>Zerohalo,
Currently we have no way to specify 'OR'</description>
		<content:encoded><![CDATA[<p>Zerohalo,<br />
Currently we have no way to specify &#8216;OR&#8217;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerohalo</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-295</link>
		<dc:creator>zerohalo</dc:creator>
		<pubDate>Fri, 23 Feb 2007 19:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-295</guid>
		<description>Nice. How do you specify the OR condition?</description>
		<content:encoded><![CDATA[<p>Nice. How do you specify the OR condition?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Davis</title>
		<link>http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-294</link>
		<dc:creator>Paul Davis</dc:creator>
		<pubDate>Wed, 21 Feb 2007 21:55:05 +0000</pubDate>
		<guid isPermaLink="false">http://webonrails.com/2007/02/22/activerecord-finder-now-we-can-use-hash-as-conditions/#comment-294</guid>
		<description>In what version of AR does this functionality appear?</description>
		<content:encoded><![CDATA[<p>In what version of AR does this functionality appear?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
