<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Turn an acts_as_tree structure into a select drop-down.</title>
	<link>http://www.rabbitcreative.com/2008/02/01/turn-an-acts_as_tree-structure-into-a-select-drop-down/</link>
	<description>ruby, rails, objects and politics</description>
	<pubDate>Thu, 28 Aug 2008 05:58:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Rabbit</title>
		<link>http://www.rabbitcreative.com/2008/02/01/turn-an-acts_as_tree-structure-into-a-select-drop-down/#comment-1713</link>
		<author>Rabbit</author>
		<pubDate>Tue, 12 Feb 2008 09:49:54 +0000</pubDate>
		<guid>http://www.rabbitcreative.com/2008/02/01/turn-an-acts_as_tree-structure-into-a-select-drop-down/#comment-1713</guid>
		<description>Model.find_all_by_parent_id(nil) works, too. Oddly enough I believe I did use that format elsewhere in the program.

Something like this could definitely be turned into a plugin or generic helper method, especially with a block to determine output.</description>
		<content:encoded><![CDATA[<p>Model.find_all_by_parent_id(nil) works, too. Oddly enough I believe I did use that format elsewhere in the program.</p>
<p>Something like this could definitely be turned into a plugin or generic helper method, especially with a block to determine output.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marquis</title>
		<link>http://www.rabbitcreative.com/2008/02/01/turn-an-acts_as_tree-structure-into-a-select-drop-down/#comment-1702</link>
		<author>Marquis</author>
		<pubDate>Mon, 11 Feb 2008 17:36:07 +0000</pubDate>
		<guid>http://www.rabbitcreative.com/2008/02/01/turn-an-acts_as_tree-structure-into-a-select-drop-down/#comment-1702</guid>
		<description>Did something similar but with checkboxes the other day.  Three things:  1)  returning - Cool new tool, Ive been looking for something like this.
2)  find(:all, :conditions =&#62; [ 'parent_id IS NULL' ]) - how about find_all_by_parent_id(NULL) ??
3)  option_groups_from_collection_for_select ??</description>
		<content:encoded><![CDATA[<p>Did something similar but with checkboxes the other day.  Three things:  1)  returning - Cool new tool, Ive been looking for something like this.<br />
2)  find(:all, :conditions =&gt; [ &#8216;parent_id IS NULL&#8217; ]) - how about find_all_by_parent_id(NULL) ??<br />
3)  option_groups_from_collection_for_select ??</p>
]]></content:encoded>
	</item>
</channel>
</rss>
