<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-11933937.post8771421414988107389..comments</id><updated>2008-05-21T03:35:31.398-05:00</updated><category term='pattern'/><category term='.net'/><category term='agile'/><category term='mysql'/><category term='ruby/rails'/><category term='humor'/><category term='efficiency'/><title type='text'>Comments on STEPHEN CHU . com: Rails composed_of &amp;block conversion</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.stephenchu.com/feeds/8771421414988107389/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html'/><author><name>Stephen Chu</name><uri>http://www.blogger.com/profile/07181510921622947661</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11933937.post-6956441223155373795</id><published>2008-05-21T03:35:00.000-05:00</published><updated>2008-05-21T03:35:00.000-05:00</updated><title type='text'>@Justin:&lt;br&gt;&lt;br&gt;Check this article out: &lt;a href="h...</title><content type='html'>@Justin:&lt;BR/&gt;&lt;BR/&gt;Check this article out: &lt;A HREF="http://www.stephenchu.com/2008/05/rails-composedof-validation.html" REL="nofollow"&gt;Rails composed_of validation&lt;/A&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/6956441223155373795'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/6956441223155373795'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html?showComment=1211358900000#c6956441223155373795' title=''/><author><name>Stephen Chu</name><uri>http://www.blogger.com/profile/07181510921622947661</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html' ref='tag:blogger.com,1999:blog-11933937.post-8771421414988107389' source='http://www.blogger.com/feeds/11933937/posts/default/8771421414988107389' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-3841993'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-314571143837059516</id><published>2008-05-19T17:19:00.000-05:00</published><updated>2008-05-19T17:19:00.000-05:00</updated><title type='text'>Great article Stephen,&lt;br&gt;&lt;br&gt;I have one question ...</title><content type='html'>Great article Stephen,&lt;BR/&gt;&lt;BR/&gt;I have one question about when to use composed_of. I have Address that is an aggregation of Locations. The types of Locations depend on the type of address. For example, a US_Postal_Address is an aggregation of City, State, Zip, etc Locations. An English_Postal_Address is an aggregation of City, County, Postal Code, ... Locations.&lt;BR/&gt;&lt;BR/&gt;Other Address types &lt;B&gt;will&lt;/B&gt; added, so I don't want to store locations within the definition of the Addresses table.&lt;BR/&gt;&lt;BR/&gt;My question is, I'm not particularly interested in the identity of the Locations, I'm only interested in their values. However, the values do need to persist. Can composed_of aggregate other ActiveRecord models?&lt;BR/&gt;&lt;BR/&gt;Second question, does this approach make sense to you?&lt;BR/&gt;&lt;BR/&gt;Thanks for a great post and your help.&lt;BR/&gt;&lt;BR/&gt;Damon</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/314571143837059516'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/314571143837059516'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html?showComment=1211235540000#c314571143837059516' title=''/><author><name>Damon</name><uri>http://www.blogger.com/profile/05316112331439883003</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_lCR-J-s0gBs/R_afoKSgV1I/AAAAAAAAADc/4-YJph4FSb4/S220/damon_torgerson.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html' ref='tag:blogger.com,1999:blog-11933937.post-8771421414988107389' source='http://www.blogger.com/feeds/11933937/posts/default/8771421414988107389' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1302419270'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-991845190912620147</id><published>2008-03-20T09:17:00.000-05:00</published><updated>2008-03-20T09:17:00.000-05:00</updated><title type='text'>Very helpful to see how fields_for and composed_of...</title><content type='html'>Very helpful to see how fields_for and composed_of work together.  You also allude to aggregate objects containing their 'own validation' code.  I'd be curious to see a writeup on this, haven't been able to find much on the web.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/991845190912620147'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/8771421414988107389/comments/default/991845190912620147'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html?showComment=1206022620000#c991845190912620147' title=''/><author><name>Justin</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.stephenchu.com/2008/03/introduction-to-rails-composedof.html' ref='tag:blogger.com,1999:blog-11933937.post-8771421414988107389' source='http://www.blogger.com/feeds/11933937/posts/default/8771421414988107389' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-757743619'/></entry></feed>
