<?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: nested relations in ActiveRecord</title>
	<atom:link href="http://joshsharpe.com/archives/56/feed" rel="self" type="application/rss+xml" />
	<link>http://joshsharpe.com/archives/56</link>
	<description></description>
	<lastBuildDate>Tue, 02 Mar 2010 16:37:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ennuyer.net &#187; Blog Archive &#187; Rails Reading - November 24, 2009</title>
		<link>http://joshsharpe.com/archives/56/comment-page-1#comment-11</link>
		<dc:creator>Ennuyer.net &#187; Blog Archive &#187; Rails Reading - November 24, 2009</dc:creator>
		<pubDate>Tue, 24 Nov 2009 22:45:05 +0000</pubDate>
		<guid isPermaLink="false">http://joshsharpe.com/?p=56#comment-11</guid>
		<description>[...]  nested relations in ActiveRecord &#124; this oughta be interesting…  [...]</description>
		<content:encoded><![CDATA[<p>[...]  nested relations in ActiveRecord | this oughta be interesting…  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: links for 2009-11-18 &#124; @neilmiddleton</title>
		<link>http://joshsharpe.com/archives/56/comment-page-1#comment-6</link>
		<dc:creator>links for 2009-11-18 &#124; @neilmiddleton</dc:creator>
		<pubDate>Wed, 18 Nov 2009 15:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://joshsharpe.com/?p=56#comment-6</guid>
		<description>[...] nested relations in ActiveRecord A nice little tip on using nested attributes with AR [...]</description>
		<content:encoded><![CDATA[<p>[...] nested relations in ActiveRecord A nice little tip on using nested attributes with AR [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://joshsharpe.com/archives/56/comment-page-1#comment-3</link>
		<dc:creator>George</dc:creator>
		<pubDate>Tue, 17 Nov 2009 22:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://joshsharpe.com/?p=56#comment-3</guid>
		<description>Looks like the html in my last comment did not get encoded correctly. Here it is again:

You can also use the excellent nested_has_many_through plugin.
http://github.com/ianwhite/nested_has_many_through

That will allow you to do

class State &lt; ActiveRecord::Base
  has_many :cities
  has_many :houses, :through =&gt; :cities
end

&gt;&gt; virginia.houses

I&#039;ve been using it in a big app for over a year. Wish it was included in rails core already.</description>
		<content:encoded><![CDATA[<p>Looks like the html in my last comment did not get encoded correctly. Here it is again:</p>
<p>You can also use the excellent nested_has_many_through plugin.<br />
<a href="http://github.com/ianwhite/nested_has_many_through" rel="nofollow">http://github.com/ianwhite/nested_has_many_through</a></p>
<p>That will allow you to do</p>
<p>class State &lt; ActiveRecord::Base<br />
  has_many :cities<br />
  has_many :houses, :through =&gt; :cities<br />
end</p>
<p>&gt;&gt; virginia.houses</p>
<p>I&#8217;ve been using it in a big app for over a year. Wish it was included in rails core already.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://joshsharpe.com/archives/56/comment-page-1#comment-2</link>
		<dc:creator>George</dc:creator>
		<pubDate>Tue, 17 Nov 2009 22:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://joshsharpe.com/?p=56#comment-2</guid>
		<description>You can also use the excellent nested_has_many_through plugin.
http://github.com/ianwhite/nested_has_many_through

That will allow you to do

class State  :cities
end

&gt;&gt; virginia.houses

I&#039;ve been using it in a big app for over a year. Wish it was included in rails core already.</description>
		<content:encoded><![CDATA[<p>You can also use the excellent nested_has_many_through plugin.<br />
<a href="http://github.com/ianwhite/nested_has_many_through" rel="nofollow">http://github.com/ianwhite/nested_has_many_through</a></p>
<p>That will allow you to do</p>
<p>class State  :cities<br />
end</p>
<p>&gt;&gt; virginia.houses</p>
<p>I&#8217;ve been using it in a big app for over a year. Wish it was included in rails core already.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
