<?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: Filtering with named scopes</title>
	<atom:link href="http://iain.nl/2009/06/filtering-with-named-scopes/feed/" rel="self" type="application/rss+xml" />
	<link>http://iain.nl/2009/06/filtering-with-named-scopes/</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 12:35:04 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Phil Kursawe</title>
		<link>http://iain.nl/2009/06/filtering-with-named-scopes/comment-page-1/#comment-722</link>
		<dc:creator>Phil Kursawe</dc:creator>
		<pubDate>Wed, 17 Mar 2010 15:37:36 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=435#comment-722</guid>
		<description>Just found this blog entry. Nice one. Would it also be possible to combine several selected filters like &quot;:adult, :adults&quot;?</description>
		<content:encoded><![CDATA[<p>Just found this blog entry. Nice one. Would it also be possible to combine several selected filters like &#8220;:adult, :adults&#8221;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Iain Hecker</title>
		<link>http://iain.nl/2009/06/filtering-with-named-scopes/comment-page-1/#comment-278</link>
		<dc:creator>Iain Hecker</dc:creator>
		<pubDate>Sun, 14 Jun 2009 09:30:42 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=435#comment-278</guid>
		<description>@Edwin I understand your concern.

I like the way it works in DataMapper, in which you can chain any method. The query only gets executed once you try to read a record from the set.

There is a proper use and balance for everything. So with this. I like the flexibility of it, because you can use the &quot;filter_*&quot;-methods in any place.

And I don&#039;t think controllers is the place to use &quot;send&quot;. I like to keep the more rubyesque methods out of there. But then again, there is no absolute rule for anything.</description>
		<content:encoded><![CDATA[<p>@Edwin I understand your concern.</p>
<p>I like the way it works in DataMapper, in which you can chain any method. The query only gets executed once you try to read a record from the set.</p>
<p>There is a proper use and balance for everything. So with this. I like the flexibility of it, because you can use the &#8220;filter_*&#8221;-methods in any place.</p>
<p>And I don&#8217;t think controllers is the place to use &#8220;send&#8221;. I like to keep the more rubyesque methods out of there. But then again, there is no absolute rule for anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edwin Vlieg</title>
		<link>http://iain.nl/2009/06/filtering-with-named-scopes/comment-page-1/#comment-276</link>
		<dc:creator>Edwin Vlieg</dc:creator>
		<pubDate>Fri, 12 Jun 2009 18:29:20 +0000</pubDate>
		<guid isPermaLink="false">http://iain.nl/?p=435#comment-276</guid>
		<description>Nice article, but I&#039;m wondering if this is the right way to go. The purpose of named_scope is to defined &lt;b&gt;named&lt;/b&gt; scopes. Just defining a &lt;em&gt;filter&lt;/em&gt; scope which accepts a name for the scope isn&#039;t really the way to go in my opinion.

You can find my approach on &lt;a href=&quot;http://blog.bluetools.nl/2008/8/5/filter-interface-met-named-scope&quot; rel=&quot;nofollow&quot;&gt;the BlueTools weblog (dutch)&lt;/a&gt;. As you can see, I&#039;m using a new named_scope for each filter. Only for the advanced filtering in which the user can define the conditions for the filter, I&#039;m using the approach you are taking.</description>
		<content:encoded><![CDATA[<p>Nice article, but I&#8217;m wondering if this is the right way to go. The purpose of named_scope is to defined <b>named</b> scopes. Just defining a <em>filter</em> scope which accepts a name for the scope isn&#8217;t really the way to go in my opinion.</p>
<p>You can find my approach on <a href="http://blog.bluetools.nl/2008/8/5/filter-interface-met-named-scope" rel="nofollow">the BlueTools weblog (dutch)</a>. As you can see, I&#8217;m using a new named_scope for each filter. Only for the advanced filtering in which the user can define the conditions for the filter, I&#8217;m using the approach you are taking.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
