<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
	>
<channel>
	<title>Comments on: URL Management and Acts As Nested Set</title>
	<atom:link href="http://blogs.law.harvard.edu/lianaleahy/2008/08/28/url-management-and-acts-as-nested-set/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogs.law.harvard.edu/lianaleahy/2008/08/28/url-management-and-acts-as-nested-set/</link>
	<description>exploits of a mom on rails</description>
	<lastBuildDate>Thu, 05 Nov 2009 22:04:02 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lianaleahy</title>
		<link>http://blogs.law.harvard.edu/lianaleahy/2008/08/28/url-management-and-acts-as-nested-set/comment-page-1/#comment-20</link>
		<dc:creator>lianaleahy</dc:creator>
		<pubDate>Fri, 19 Sep 2008 14:24:18 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.law.harvard.edu/lianaleahy/?p=20#comment-20</guid>
		<description>I found a solution to the problem detailed in my note above. &lt;b&gt;has_many :through&lt;/b&gt; comes through again! 

Josh created a patch last year for an enhancement to Rails dynamic finders.  The new feature is that if you pass a hash to the finder, it will still use only the values named in the finder to find the object, but it will create a new object using all the values.  Check out the link below for more details:

http://blog.hasmanythrough.com/2007/3/14/dynamic-finders-with-hash-attributes-for-creation

Nice!</description>
		<content:encoded><![CDATA[<p>I found a solution to the problem detailed in my note above. <b>has_many :through</b> comes through again! </p>
<p>Josh created a patch last year for an enhancement to Rails dynamic finders.  The new feature is that if you pass a hash to the finder, it will still use only the values named in the finder to find the object, but it will create a new object using all the values.  Check out the link below for more details:</p>
<p><a href="http://blog.hasmanythrough.com/2007/3/14/dynamic-finders-with-hash-attributes-for-creation" rel="nofollow">http://blog.hasmanythrough.com/2007/3/14/dynamic-finders-with-hash-attributes-for-creation</a></p>
<p>Nice!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lianaleahy</title>
		<link>http://blogs.law.harvard.edu/lianaleahy/2008/08/28/url-management-and-acts-as-nested-set/comment-page-1/#comment-12</link>
		<dc:creator>lianaleahy</dc:creator>
		<pubDate>Wed, 10 Sep 2008 15:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://blogs.law.harvard.edu/lianaleahy/?p=20#comment-12</guid>
		<description>P.S.  Don&#039;t forget to add acts_as_nested_set to your model.  And if you have multiple roots in your tree, you&#039;ll need to add the scope.  (e.g. :scope =&gt; :root_id)

And by the way, to migrate an old table... simply add the lft and rgt columns.  Then in you code add a &quot;.renumber_all&quot;.  This will fill in the new columns with their proper values.</description>
		<content:encoded><![CDATA[<p>P.S.  Don&#8217;t forget to add acts_as_nested_set to your model.  And if you have multiple roots in your tree, you&#8217;ll need to add the scope.  (e.g. :scope =&gt; :root_id)</p>
<p>And by the way, to migrate an old table&#8230; simply add the lft and rgt columns.  Then in you code add a &#8220;.renumber_all&#8221;.  This will fill in the new columns with their proper values.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
