<?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.post3716593703045725703..comments</id><updated>2010-07-09T12:17:12.019-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 validation</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.stephenchu.com/feeds/3716593703045725703/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/05/rails-composedof-validation.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>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-11933937.post-8782666011633290362</id><published>2010-07-09T12:17:12.010-05:00</published><updated>2010-07-09T12:17:12.010-05:00</updated><title type='text'>i am using this method with the Money gem, and the...</title><content type='html'>i am using this method with the Money gem, and their example composed_of code (http://money.rubyforge.org/).  When i submit my form, i am getting undefined method `cents&amp;#39; for {&amp;quot;cents&amp;quot;=&amp;gt;&amp;quot;0.0&amp;quot;, &amp;quot;currency&amp;quot;=&amp;gt;&amp;quot;usd&amp;quot;}:HashWithIndifferentAccess&lt;br /&gt;&lt;br /&gt;composed_of is not looking in the amount hash for cents &amp;amp; currency, it is using the hash itself.  i cant seem  to figure out why.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/8782666011633290362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/8782666011633290362'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/05/rails-composedof-validation.html?showComment=1278695832010#c8782666011633290362' title=''/><author><name>Brewster</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/05/rails-composedof-validation.html' ref='tag:blogger.com,1999:blog-11933937.post-3716593703045725703' source='http://www.blogger.com/feeds/11933937/posts/default/3716593703045725703' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1468360541'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-8615276214356539608</id><published>2008-08-05T21:27:00.000-05:00</published><updated>2008-08-05T21:27:00.000-05:00</updated><title type='text'>Stephen, you can ignore my comment above. i went t...</title><content type='html'>Stephen, you can ignore my comment above. i went through the previous 2 posts on the composed_of topic and i better understand what you did. Thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/8615276214356539608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/8615276214356539608'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/05/rails-composedof-validation.html?showComment=1217989620000#c8615276214356539608' title=''/><author><name>JR</name><uri>http://www.blogger.com/profile/15859286284585937480</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/05/rails-composedof-validation.html' ref='tag:blogger.com,1999:blog-11933937.post-3716593703045725703' source='http://www.blogger.com/feeds/11933937/posts/default/3716593703045725703' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1973139547'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-126059856506744741</id><published>2008-07-30T22:23:00.000-05:00</published><updated>2008-07-30T22:23:00.000-05:00</updated><title type='text'>Hi Steven, this is nice work! i&amp;#39;m working on s...</title><content type='html'>Hi Steven, this is nice work! i&amp;#39;m working on some statistical processing and looking at doing aggregation, but then persisting that data.&lt;BR/&gt;&lt;BR/&gt;In your example, what if you wanted to keep a year-end balance?&lt;BR/&gt;&lt;BR/&gt;Would you then create an AR class&lt;BR/&gt;&lt;BR/&gt;class YearEndBalance &amp;lt; ActiveRecord::Base&lt;BR/&gt;  :belongs_to User&lt;BR/&gt;  # fields would be&lt;BR/&gt;  # id, year, user_id, balance&lt;BR/&gt;end&lt;BR/&gt;&lt;BR/&gt;and have in User.rb:&lt;BR/&gt;&lt;BR/&gt;  :has_many year_end_balances&lt;BR/&gt;&lt;BR/&gt;Obviously, the creation of year-end-balances would be done from an off-line process from a batch-scheduler.&lt;BR/&gt;&lt;BR/&gt;This would complete the full circle of data aggregation i&amp;#39;m trying to implement. not a very documented topic.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/126059856506744741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/126059856506744741'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/05/rails-composedof-validation.html?showComment=1217474580000#c126059856506744741' title=''/><author><name>JR</name><uri>http://www.blogger.com/profile/15859286284585937480</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/05/rails-composedof-validation.html' ref='tag:blogger.com,1999:blog-11933937.post-3716593703045725703' source='http://www.blogger.com/feeds/11933937/posts/default/3716593703045725703' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1973139547'/></entry><entry><id>tag:blogger.com,1999:blog-11933937.post-5526460936190603318</id><published>2008-05-21T23:08:00.000-05:00</published><updated>2008-05-21T23:08:00.000-05:00</updated><title type='text'>Hey Chu,&lt;br&gt;Nice post.&lt;br&gt;What's this ActiveRecord...</title><content type='html'>Hey Chu,&lt;BR/&gt;Nice post.&lt;BR/&gt;What's this ActiveRecord::Bases thing did you mean ActiveRecord::Base?&lt;BR/&gt;&lt;BR/&gt;Sammy Z</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/5526460936190603318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/11933937/3716593703045725703/comments/default/5526460936190603318'/><link rel='alternate' type='text/html' href='http://www.stephenchu.com/2008/05/rails-composedof-validation.html?showComment=1211429280000#c5526460936190603318' title=''/><author><name>bayesian</name><uri>http://www.blogger.com/profile/17429125011813041283</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/05/rails-composedof-validation.html' ref='tag:blogger.com,1999:blog-11933937.post-3716593703045725703' source='http://www.blogger.com/feeds/11933937/posts/default/3716593703045725703' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-64093804'/></entry></feed>
