<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.2" -->
<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>Comments on: named_scope with acts_as_tree</title>
	<link>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/</link>
	<description>A delicious blend of Ruby and Rails...</description>
	<pubDate>Fri, 21 Nov 2008 03:41:30 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.2</generator>
		<item>
		<title>By: benhughes</title>
		<link>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-1014</link>
		<dc:creator>benhughes</dc:creator>
		<pubDate>Fri, 29 Aug 2008 12:19:26 +0000</pubDate>
		<guid>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-1014</guid>
		<description>You could but that's an actual find method that returns results, not a scope.  My top scope above can be chained.  Also, Category.root just returns the *first* result with parent_id = nil (for the case where you have a category with a single root).  There is however a Category.roots that works the same way as my top, just not with a named_scope.</description>
		<content:encoded><![CDATA[<p>You could but that&#8217;s an actual find method that returns results, not a scope.  My top scope above can be chained.  Also, Category.root just returns the *first* result with parent_id = nil (for the case where you have a category with a single root).  There is however a Category.roots that works the same way as my top, just not with a named_scope.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-1013</link>
		<dc:creator>Martin</dc:creator>
		<pubDate>Fri, 29 Aug 2008 10:15:30 +0000</pubDate>
		<guid>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-1013</guid>
		<description>For the first named_scope you could have also used the class method "root" baked into acts_as_tree:

Category.root</description>
		<content:encoded><![CDATA[<p>For the first named_scope you could have also used the class method &#8220;root&#8221; baked into acts_as_tree:</p>
<p>Category.root</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: essetLaf</title>
		<link>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-886</link>
		<dc:creator>essetLaf</dc:creator>
		<pubDate>Sun, 03 Aug 2008 12:04:20 +0000</pubDate>
		<guid>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-886</guid>
		<description>Thank you</description>
		<content:encoded><![CDATA[<p>Thank you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mongo</title>
		<link>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-802</link>
		<dc:creator>mongo</dc:creator>
		<pubDate>Wed, 16 Jul 2008 06:34:07 +0000</pubDate>
		<guid>http://www.railsgarden.com/2008/06/25/named_scope-with-acts_as_tree/#comment-802</guid>
		<description>thank you so much; i was looking for an example with the lambda *and* the association.</description>
		<content:encoded><![CDATA[<p>thank you so much; i was looking for an example with the lambda *and* the association.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
