<?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: link_to as a block helper</title>
	<atom:link href="http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/</link>
	<description></description>
	<lastBuildDate>Sat, 05 Jun 2010 08:01:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: nullstyle</title>
		<link>http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-8</link>
		<dc:creator>nullstyle</dc:creator>
		<pubDate>Sun, 07 Oct 2007 11:04:59 +0000</pubDate>
		<guid isPermaLink="false">http://nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-8</guid>
		<description>&lt;p&gt;The only advantage of my method is that it provides the same benefit as any use of alias&lt;em&gt;method&lt;/em&gt;chain:  It doesn&#039;t hide the original method, and it makes it explicit what pattern you are using.&lt;/p&gt; 

&lt;p&gt;&lt;p&gt;&lt;p&gt;Please note you can further reduce the meat of my code to: 
&lt;pre class=&quot;sh&lt;em&gt;ruby&quot;&gt; 
  def link&lt;em&gt;to&lt;/em&gt;with&lt;em&gt;block(&lt;em&gt;args, &amp;block) 
    return link&lt;/em&gt;to&lt;em&gt;without&lt;/em&gt;block(&lt;/em&gt;args) unless block 
    concat(link&lt;em&gt;to&lt;/em&gt;without&lt;/em&gt;block(capture(&amp;block), args), block.binding) 
  end 
&lt;/pre&gt; 
&lt;p&gt;Basically the same, just a little different personal style on the conditional.&lt;/p&gt;&lt;/p&gt;&lt;/em&gt;&lt;/p&gt; &lt;/p&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>The only advantage of my method is that it provides the same benefit as any use of alias<em>method</em>chain:  It doesn&#039;t hide the original method, and it makes it explicit what pattern you are using.</p> 

<p></p><p></p><p>Please note you can further reduce the meat of my code to: 
&lt;pre class=&quot;sh<em>ruby&quot;&gt; 
  def link</em><em>to</em>with<em>block(</em><em>args, &amp;block) 
    return link</em>to<em>without</em>block(args) unless block 
    concat(link<em>to</em>withoutblock(capture(&amp;block), args), block.binding) 
  end 
&lt;/pre&gt; 
</p><p>Basically the same, just a little different personal style on the conditional.</p> ]]></content:encoded>
	</item>
	<item>
		<title>By: nicolash</title>
		<link>http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-7</link>
		<dc:creator>nicolash</dc:creator>
		<pubDate>Sun, 07 Oct 2007 09:14:04 +0000</pubDate>
		<guid isPermaLink="false">http://nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-7</guid>
		<description>&lt;p&gt;A general question: 
When and why should we go the way to just override in the helpers:  &lt;a href=&quot;http://opensoul.org/2006/08/04/tip-overriding-link_to-to-accept-a-block/&quot; rel=&quot;nofollow&quot;&gt;http://opensoul.org/2006/08/04/tip-overriding-lin...&lt;/a&gt; 
and when should we go your way?&lt;/p&gt; 

&lt;p&gt;&lt;p&gt;If you don&#039;t use your code to transform it into a plug-in, where are the advantages to go the (more verbose/complicated) way&lt;/p&gt; &lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>A general question: 
When and why should we go the way to just override in the helpers:  <a href="http://opensoul.org/2006/08/04/tip-overriding-link_to-to-accept-a-block/" rel="nofollow">http://opensoul.org/2006/08/04/tip-overriding-lin&#8230;</a> 
and when should we go your way?</p> 

<p></p><p>If you don&#039;t use your code to transform it into a plug-in, where are the advantages to go the (more verbose/complicated) way</p> ]]></content:encoded>
	</item>
	<item>
		<title>By: nullstyle</title>
		<link>http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-6</link>
		<dc:creator>nullstyle</dc:creator>
		<pubDate>Mon, 01 Oct 2007 16:52:05 +0000</pubDate>
		<guid isPermaLink="false">http://nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-6</guid>
		<description>&lt;p&gt;Thanks meekish, I&#039;ve fixed the markup.&lt;/p&gt; 
</description>
		<content:encoded><![CDATA[<p>Thanks meekish, I&#039;ve fixed the markup.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: meekish</title>
		<link>http://www.nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-5</link>
		<dc:creator>meekish</dc:creator>
		<pubDate>Mon, 01 Oct 2007 16:09:15 +0000</pubDate>
		<guid isPermaLink="false">http://nullstyle.com/2007/06/19/link_to-as-a-block-helper/#comment-5</guid>
		<description>&lt;p&gt;Your example code blocks are invisible in Safari 3.&lt;/p&gt; 
</description>
		<content:encoded><![CDATA[<p>Your example code blocks are invisible in Safari 3.</p>]]></content:encoded>
	</item>
</channel>
</rss>

