<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Rails : Consider the view as stupid</title>
	<link>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/</link>
	<description>Because programming should be fun</description>
	<pubDate>Mon, 08 Sep 2008 09:46:11 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: Dan Kubb</title>
		<link>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-184</link>
		<author>Dan Kubb</author>
		<pubDate>Fri, 27 Apr 2007 20:17:17 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-184</guid>
					<description>I would take this a step further and say "No instance variables in the view".

I try to keep all view type logic within my helpers, and just include the appropriate helper method when needed.  The view should not have any real knowledge about how the controller's internal state, which is (unfortunately) copied into the view's namespace.

You've probably heard of "Fat Model, Skinny Controller", I try to do "Fat Model and Helpers, Skinny Controllers and Views".</description>
		<content:encoded><![CDATA[<p>I would take this a step further and say &#8220;No instance variables in the view&#8221;.</p>
<p>I try to keep all view type logic within my helpers, and just include the appropriate helper method when needed.  The view should not have any real knowledge about how the controller&#8217;s internal state, which is (unfortunately) copied into the view&#8217;s namespace.</p>
<p>You&#8217;ve probably heard of &#8220;Fat Model, Skinny Controller&#8221;, I try to do &#8220;Fat Model and Helpers, Skinny Controllers and Views&#8221;.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Adrian DeWitts</title>
		<link>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-186</link>
		<author>Adrian DeWitts</author>
		<pubDate>Sat, 28 Apr 2007 05:43:20 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-186</guid>
					<description>I agree with you. But the question is why?</description>
		<content:encoded><![CDATA[<p>I agree with you. But the question is why?</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Alan Brown</title>
		<link>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-187</link>
		<author>Alan Brown</author>
		<pubDate>Sat, 28 Apr 2007 20:42:49 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-187</guid>
					<description>I imagine keeping logic out of the views and using helpers whenever it makes sense in the view will keep the view easier to maintain.</description>
		<content:encoded><![CDATA[<p>I imagine keeping logic out of the views and using helpers whenever it makes sense in the view will keep the view easier to maintain.</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-188</link>
		<author>Frank</author>
		<pubDate>Sat, 28 Apr 2007 20:51:29 +0000</pubDate>
		<guid>http://www.rubyfleebie.com/rails-consider-the-view-as-stupid/#comment-188</guid>
					<description>@Adrian, 

It's just a "separation of concerns" thing.

Views duty is to manage the presentational side of things
Models duty is to manage the backend storage
Controllers duty is to manage the application flow

@Dan , @Alan

I should have talked about helpers, you're right! I will update my post.</description>
		<content:encoded><![CDATA[<p>@Adrian, </p>
<p>It&#8217;s just a &#8220;separation of concerns&#8221; thing.</p>
<p>Views duty is to manage the presentational side of things<br />
Models duty is to manage the backend storage<br />
Controllers duty is to manage the application flow</p>
<p>@Dan , @Alan</p>
<p>I should have talked about helpers, you&#8217;re right! I will update my post.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
