<?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"
	>
<channel>
	<title>Comments on: Rails: content_tag block fix</title>
	<atom:link href="http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/</link>
	<description>Greg Pierce's blog</description>
	<pubDate>Tue, 02 Dec 2008 21:03:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
		<item>
		<title>By: Salman Ansari</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-12153</link>
		<dc:creator>Salman Ansari</dc:creator>
		<pubDate>Tue, 25 Mar 2008 22:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-12153</guid>
		<description>Awesome dude, this just saved me some effort :) 

Keep up the good work! Thanks.</description>
		<content:encoded><![CDATA[<p>Awesome dude, this just saved me some effort <img src='http://greg.agiletortoise.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Keep up the good work! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mario Lanza</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-11817</link>
		<dc:creator>Mario Lanza</dc:creator>
		<pubDate>Sat, 16 Feb 2008 17:05:14 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-11817</guid>
		<description>Saved me too.  Thanks.</description>
		<content:encoded><![CDATA[<p>Saved me too.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gustin</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-11217</link>
		<dc:creator>gustin</dc:creator>
		<pubDate>Fri, 14 Sep 2007 02:26:03 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-11217</guid>
		<description>thanks! 
i was excited to clean up my helpers with content_tag, but ran into this very problem.

oscar, it is all about aesthetics -- isn't that why we all love ruby ;-P
anything non-trivial is way nicer looking like this:

    cell += content_tag :tr do
        content_tag :td do
          "hello world"
        end
    end

apply this to more complicated tabular data your spitting out in a view helper, seems beneficial</description>
		<content:encoded><![CDATA[<p>thanks!<br />
i was excited to clean up my helpers with content_tag, but ran into this very problem.</p>
<p>oscar, it is all about aesthetics &#8212; isn&#8217;t that why we all love ruby ;-P<br />
anything non-trivial is way nicer looking like this:</p>
<p>    cell += content_tag :tr do<br />
        content_tag :td do<br />
          &#8220;hello world&#8221;<br />
        end<br />
    end</p>
<p>apply this to more complicated tabular data your spitting out in a view helper, seems beneficial</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscar</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2795</link>
		<dc:creator>oscar</dc:creator>
		<pubDate>Sun, 18 Mar 2007 04:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2795</guid>
		<description>Actually just after posting my question I find a better solution.

There is no need to overide content_tag. In your code you can just write :
content_tag(name, capture(&#38;block), options)</description>
		<content:encoded><![CDATA[<p>Actually just after posting my question I find a better solution.</p>
<p>There is no need to overide content_tag. In your code you can just write :<br />
content_tag(name, capture(&amp;block), options)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oscar</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2794</link>
		<dc:creator>oscar</dc:creator>
		<pubDate>Sun, 18 Mar 2007 04:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2794</guid>
		<description>1- Do you have an example of where do you put exactly the new definition of contag_tag.

I've tried but got:
private method `content_tag_string' called for #:0xb781d20c&#62;</description>
		<content:encoded><![CDATA[<p>1- Do you have an example of where do you put exactly the new definition of contag_tag.</p>
<p>I&#8217;ve tried but got:<br />
private method `content_tag_string&#8217; called for #:0xb781d20c&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: greg</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2730</link>
		<dc:creator>greg</dc:creator>
		<pubDate>Sat, 17 Mar 2007 02:56:41 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2730</guid>
		<description>If you want to build HTML like that, you should look at &lt;a href="http://redhanded.hobix.com/inspect/markabyForRails.html" rel="nofollow"&gt;Markaby&lt;/a&gt;.

g.</description>
		<content:encoded><![CDATA[<p>If you want to build HTML like that, you should look at <a href="http://redhanded.hobix.com/inspect/markabyForRails.html" rel="nofollow">Markaby</a>.</p>
<p>g.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan</title>
		<link>http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2712</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Thu, 15 Mar 2007 18:50:04 +0000</pubDate>
		<guid isPermaLink="false">http://greg.agiletortoise.com/2007/03/01/rails-content_tag-block-fix/#comment-2712</guid>
		<description>Thanks for this fix - I just ran into the same problem.

I wonder if it could be tweaked a little more.  I wrote up an explanation here http://www.ruby-forum.com/topic/101460 I'd really like to help out, but my Ruby skills are a bit lacking.</description>
		<content:encoded><![CDATA[<p>Thanks for this fix - I just ran into the same problem.</p>
<p>I wonder if it could be tweaked a little more.  I wrote up an explanation here <a href="http://www.ruby-forum.com/topic/101460" rel="nofollow">http://www.ruby-forum.com/topic/101460</a> I&#8217;d really like to help out, but my Ruby skills are a bit lacking.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
