<?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: Using Helpers instead of Components</title>
	<atom:link href="http://www.igvita.com/2006/09/17/helpers-instead-of-components/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/</link>
	<description>A goal is a dream with a deadline.</description>
	<pubDate>Sat, 30 Aug 2008 00:38:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-101104</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Mon, 21 Jan 2008 01:47:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-101104</guid>
		<description>Corey, you're right, the filename should read application_helper.rb instead. Unfortunately there is no clean way to abstract this further either, or at least I'm not aware of it. And I do agree that placing your model code into a helper is not the best way to handle this..</description>
		<content:encoded><![CDATA[<p>Corey, you&#8217;re right, the filename should read application_helper.rb instead. Unfortunately there is no clean way to abstract this further either, or at least I&#8217;m not aware of it. And I do agree that placing your model code into a helper is not the best way to handle this..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Corey Miller</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-101054</link>
		<dc:creator>Corey Miller</dc:creator>
		<pubDate>Wed, 16 Jan 2008 15:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-101054</guid>
		<description>At first you say the first block of code goes in your application helper, but you have it labeled as recent_posts.rb.  Shouldn't it be application_helper.rb?  If there is some way to actually abstract that part of the code it would actually make things a lot nicer, I hate that now to integrate a component we've gotta add stuff to the application helper file which requires synchronization, not just copying files.</description>
		<content:encoded><![CDATA[<p>At first you say the first block of code goes in your application helper, but you have it labeled as recent_posts.rb.  Shouldn&#8217;t it be application_helper.rb?  If there is some way to actually abstract that part of the code it would actually make things a lot nicer, I hate that now to integrate a component we&#8217;ve gotta add stuff to the application helper file which requires synchronization, not just copying files.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-6969</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Wed, 20 Sep 2006 18:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-6969</guid>
		<description>Yep, I tend to prefer to keep the separation between controllers and templates just as their names imply. (Even though I'm doing the date formatting in the view, hmm!) 

Instead, you could just iterate over the posts inside the view. No difference, really.</description>
		<content:encoded><![CDATA[<p>Yep, I tend to prefer to keep the separation between controllers and templates just as their names imply. (Even though I&#8217;m doing the date formatting in the view, hmm!) </p>
<p>Instead, you could just iterate over the posts inside the view. No difference, really.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jordan Arentsen</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-6968</link>
		<dc:creator>Jordan Arentsen</dc:creator>
		<pubDate>Wed, 20 Sep 2006 17:42:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-6968</guid>
		<description>I see that you used &lt;code&gt;yield&lt;/code&gt; instead of going the &lt;code&gt;recent_blog_posts.each&lt;/code&gt; way. Is there a reason for doing this? Basically you're adding a line in the controller to take away a method call in the view?</description>
		<content:encoded><![CDATA[<p>I see that you used <code>yield</code> instead of going the <code>recent_blog_posts.each</code> way. Is there a reason for doing this? Basically you&#8217;re adding a line in the controller to take away a method call in the view?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ilya Grigorik</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-6929</link>
		<dc:creator>Ilya Grigorik</dc:creator>
		<pubDate>Mon, 18 Sep 2006 17:32:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-6929</guid>
		<description>zerohalo, you're correct, it should be shared/recent_posts, good catch! I've updated the code above. :)</description>
		<content:encoded><![CDATA[<p>zerohalo, you&#8217;re correct, it should be shared/recent_posts, good catch! I&#8217;ve updated the code above. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zerohalo</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-6928</link>
		<dc:creator>zerohalo</dc:creator>
		<pubDate>Mon, 18 Sep 2006 16:07:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-6928</guid>
		<description>Helpful explanation of the use of helpers. I'm still trying to get the hang of using those in order to get more code out of my views.

One thing that wasn't clear is that shouldn't the partial you're calling in recent_posts_view.rhtml be shared/recent_posts ? You have it as shared/blog_posts. Maybe I'm not understanding the code correctly.</description>
		<content:encoded><![CDATA[<p>Helpful explanation of the use of helpers. I&#8217;m still trying to get the hang of using those in order to get more code out of my views.</p>
<p>One thing that wasn&#8217;t clear is that shouldn&#8217;t the partial you&#8217;re calling in recent_posts_view.rhtml be shared/recent_posts ? You have it as shared/blog_posts. Maybe I&#8217;m not understanding the code correctly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Larry Myers</title>
		<link>http://www.igvita.com/2006/09/17/helpers-instead-of-components/#comment-6915</link>
		<dc:creator>Larry Myers</dc:creator>
		<pubDate>Sun, 17 Sep 2006 14:01:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.igvita.com/blog/2006/09/17/helpers-instead-of-components/#comment-6915</guid>
		<description>You might want to consider moving more of the formatting logic out of the view and into helpers. Such as Time formatting, and making your url_for calls just a single helper call. I've done it with MyersDS and it really helps clean up the view by making it mostly html.</description>
		<content:encoded><![CDATA[<p>You might want to consider moving more of the formatting logic out of the view and into helpers. Such as Time formatting, and making your url_for calls just a single helper call. I&#8217;ve done it with MyersDS and it really helps clean up the view by making it mostly html.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
