<?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: map_by_method now works with ActiveRecord associations</title>
	<atom:link href="http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Mon, 15 Mar 2010 20:10:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Ruby Galore - Today Top Blog Posts on Ruby on Rails - Powered by SocialRank</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-48143</link>
		<dc:creator>Ruby Galore - Today Top Blog Posts on Ruby on Rails - Powered by SocialRank</dc:creator>
		<pubDate>Tue, 09 Oct 2007 07:58:56 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-48143</guid>
		<description>[...] map_by_method now works with ActiveRecord associations [...]</description>
		<content:encoded><![CDATA[<p>[...] map_by_method now works with ActiveRecord associations [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-45047</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Fri, 07 Sep 2007 09:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-45047</guid>
		<description>map_by_method 0.8.2 should fix the each_pair issue</description>
		<content:encoded><![CDATA[<p>map_by_method 0.8.2 should fix the each_pair issue</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-44950</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 06 Sep 2007 08:13:27 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44950</guid>
		<description>Except the each_pair issue. I&#039;ll investigate this later.</description>
		<content:encoded><![CDATA[<p>Except the each_pair issue. I&#8217;ll investigate this later.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-44949</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Thu, 06 Sep 2007 08:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44949</guid>
		<description>All known issues are resolved in 0.8.1. Thxs to Mislav Marohnić for hunting down some of the issues!</description>
		<content:encoded><![CDATA[<p>All known issues are resolved in 0.8.1. Thxs to Mislav Marohnić for hunting down some of the issues!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-44458</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Sun, 02 Sep 2007 05:39:41 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44458</guid>
		<description>Regarding the 0.7.0 issue with Rails, its something to do with the respond_to? method I added. I&#039;m still to investigate.</description>
		<content:encoded><![CDATA[<p>Regarding the 0.7.0 issue with Rails, its something to do with the respond_to? method I added. I&#8217;m still to investigate.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr Nic</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-44457</link>
		<dc:creator>Dr Nic</dc:creator>
		<pubDate>Sun, 02 Sep 2007 05:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44457</guid>
		<description>@mike [&lt;a href=&#039;http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44411&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - true, I need to explicitly add them into the map_by_method code for them to work.</description>
		<content:encoded><![CDATA[<p>@mike [<a href='http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44411' rel="nofollow">via</a>] &#8211; true, I need to explicitly add them into the map_by_method code for them to work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mike</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-44411</link>
		<dc:creator>mike</dc:creator>
		<pubDate>Sat, 01 Sep 2007 15:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-44411</guid>
		<description>Symbol#to_proc can also be used with all the enumerable methods that take blocks, like sort_by and select.</description>
		<content:encoded><![CDATA[<p>Symbol#to_proc can also be used with all the enumerable methods that take blocks, like sort_by and select.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: btucker</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-43460</link>
		<dc:creator>btucker</dc:creator>
		<pubDate>Thu, 23 Aug 2007 19:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-43460</guid>
		<description>Any progress on the issue reported by Vann above?  Ran into this too, and had to downgrade back to 0.6.0.</description>
		<content:encoded><![CDATA[<p>Any progress on the issue reported by Vann above?  Ran into this too, and had to downgrade back to 0.6.0.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bug</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-42810</link>
		<dc:creator>Bug</dc:creator>
		<pubDate>Sun, 19 Aug 2007 04:13:38 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-42810</guid>
		<description>@Dr Nic [&lt;a href=&#039;http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-41853&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] - Yeah, ok, but only in Rails does this make a difference.  It seems pretty specific to the Rails domain of homogeneous arrays of model objects, readable-as-English code, and the need for blazing-fast development.

With those as givens, of course, this is pretty neat.</description>
		<content:encoded><![CDATA[<p>@Dr Nic [<a href='http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-41853' rel="nofollow">via</a>] &#8211; Yeah, ok, but only in Rails does this make a difference.  It seems pretty specific to the Rails domain of homogeneous arrays of model objects, readable-as-English code, and the need for blazing-fast development.</p>
<p>With those as givens, of course, this is pretty neat.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: renek</title>
		<link>http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/comment-page-1/#comment-42427</link>
		<dc:creator>renek</dc:creator>
		<pubDate>Thu, 16 Aug 2007 09:06:36 +0000</pubDate>
		<guid isPermaLink="false">http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-42427</guid>
		<description>@Dr Nic [&lt;a href=&#039;http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-42030&#039; rel=&quot;nofollow&quot;&gt;via&lt;/a&gt;] 
- 
Great module Dr Nic! 

I only had some trouble with the regex for the &#039;respond_to?&#039; method. 
The regex in map_by_method_regex is:

/(map&#124;collect&#124;select&#124;each&#124;reject)(_by)?_([\w\_]+\??)/

which does (unfortunately) also match &#039;each_pair&#039;. This caused some trouble in my app since an array responds to a method that belong to hashes. Removing the &#039;?&#039; after &#039;(_by)&#039; in the regex works for me.</description>
		<content:encoded><![CDATA[<p>@Dr Nic [<a href='http://drnicwilliams.com/2007/08/12/map_by_method-now-works-with-activerecord-associations/#comment-42030' rel="nofollow">via</a>]<br />
-<br />
Great module Dr Nic! </p>
<p>I only had some trouble with the regex for the &#8216;respond_to?&#8217; method.<br />
The regex in map_by_method_regex is:</p>
<p>/(map|collect|select|each|reject)(_by)?_([\w\_]+\??)/</p>
<p>which does (unfortunately) also match &#8216;each_pair&#8217;. This caused some trouble in my app since an array responds to a method that belong to hashes. Removing the &#8216;?&#8217; after &#8216;(_by)&#8217; in the regex works for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
