<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>acts_as_developer: Don't Use Instance Variables in Partials</title>
    <link>http://www.robertshowalter.com/articles/2007/07/24/dont-use-instance-variables-in-partials</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Don't Use Instance Variables in Partials</title>
      <description>&lt;p&gt;Using instance variables (e.g. &lt;code&gt;@article&lt;/code&gt;) is a handy way to pass data from your controller to your views. When your view is rendered, Rails arranges for all the controller instance variables to be available within the view.&lt;/p&gt;


	&lt;p&gt;However, you should avoid using instance variables to pass data to partials. Partials are almost always used for snippets of &lt;span class="caps"&gt;HTML&lt;/span&gt; that will be reused in multiple places in your application, and using instance variables makes it harder to achieve that reuse.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s a simple example. Let&amp;#8217;s say we have a blog article, and we want to display the article body followed by a set of links to actions that can be performed on the article. So we might have a controller like this:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;  &lt;span class="keyword"&gt;def &lt;/span&gt;&lt;span class="method"&gt;show&lt;/span&gt;
    &lt;span class="attribute"&gt;@article&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="constant"&gt;Article&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;find&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="ident"&gt;params&lt;/span&gt;&lt;span class="punct"&gt;[&lt;/span&gt;&lt;span class="symbol"&gt;:id&lt;/span&gt;&lt;span class="punct"&gt;])&lt;/span&gt;
  &lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Here&amp;#8217;s the view, &lt;code&gt;show.rhtml&lt;/code&gt;:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.body&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links' %&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;And here&amp;#8217;s the partial, &lt;code&gt;_links.rhtml&lt;/code&gt;:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;p&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;link_to&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;Comments&lt;/span&gt;&lt;span class="punct"&gt;',&lt;/span&gt; :&lt;span class="attribute"&gt;controller&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; '/articles', :action =&amp;gt; 'comments', :id =&amp;gt; @article.id %&amp;gt;
&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;p&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;(Note how were referencing &lt;code&gt;@article&lt;/code&gt; from inside the partial.)&lt;/p&gt;


	&lt;p&gt;Now let&amp;#8217;s say we want to display a list of articles, and we want to reuse the &lt;code&gt;links&lt;/code&gt; partial to add links to each article.&lt;/p&gt;


	&lt;p&gt;Here&amp;#8217;s the controller:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_ruby "&gt;  &lt;span class="keyword"&gt;def &lt;/span&gt;&lt;span class="method"&gt;list&lt;/span&gt;
    &lt;span class="attribute"&gt;@all_articles&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="constant"&gt;Article&lt;/span&gt;&lt;span class="punct"&gt;.&lt;/span&gt;&lt;span class="ident"&gt;find&lt;/span&gt;&lt;span class="punct"&gt;(&lt;/span&gt;&lt;span class="symbol"&gt;:all&lt;/span&gt;&lt;span class="punct"&gt;)&lt;/span&gt;
  &lt;span class="keyword"&gt;end&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;And here&amp;#8217;s the view:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;All Articles&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; @&lt;span class="attribute"&gt;articles.each&lt;/span&gt; &lt;span class="attribute"&gt;do&lt;/span&gt; |&lt;span class="attribute"&gt;art|&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; &lt;span class="attribute"&gt;art.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links' %&amp;gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; &lt;span class="attribute"&gt;end&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Uh-oh. How does &lt;code&gt;_links.rhtml&lt;/code&gt; find the article id, since we don&amp;#8217;t have an @article instance variable?&lt;/p&gt;


	&lt;p&gt;You might be tempted to &amp;#8220;fix&amp;#8221; it like this:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;All Articles&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; @&lt;span class="attribute"&gt;articles.each&lt;/span&gt; &lt;span class="attribute"&gt;do&lt;/span&gt; |&lt;span class="attribute"&gt;art|&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; &lt;span class="attribute"&gt;art.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; @&lt;span class="attribute"&gt;article&lt;/span&gt; &lt;span class="punct"&gt;=&lt;/span&gt; &lt;span class="attribute"&gt;art&lt;/span&gt;   # &lt;span class="attribute"&gt;needed&lt;/span&gt; &lt;span class="attribute"&gt;by&lt;/span&gt; &lt;span class="attribute"&gt;the&lt;/span&gt; &lt;span class="attribute"&gt;partial&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links' %&amp;gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; &lt;span class="attribute"&gt;end&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Don&amp;#8217;t do that. Instead, change your partial to avoid using instance variables and use &lt;em&gt;local&lt;/em&gt; variables instead.&lt;/p&gt;


	&lt;p&gt;You have two choices for naming local variables:&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;Use a local variable named the same as your partial (e.g. &amp;#8220;&lt;code&gt;links&lt;/code&gt;&amp;#8221; in this case.&lt;/li&gt;
		&lt;li&gt;Use any local variable names you wish. For example, we could use &lt;code&gt;article&lt;/code&gt; as a local variable for the article instead of the &lt;code&gt;@article&lt;/code&gt; instance variable. More about this in a moment.&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;The first form is useful if your partial is used to display all the details for each item of a collection (array). In this case, you can render the entire array without using an explicit loop by using the &lt;code&gt;:collection&lt;/code&gt; argument to &lt;code&gt;render&lt;/code&gt;:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;   &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links', :collection =&amp;gt; @all_articles %&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Even though there is no loop, the partial is rendered once for each element in &lt;code&gt;@articles&lt;/code&gt;. Within the partial, you would reference the current article through the &lt;code&gt;links&lt;/code&gt; local variable:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;&lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;p&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;link_to&lt;/span&gt; &lt;span class="punct"&gt;'&lt;/span&gt;&lt;span class="string"&gt;Comments&lt;/span&gt;&lt;span class="punct"&gt;',&lt;/span&gt; :&lt;span class="attribute"&gt;controller&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; '/articles', :action =&amp;gt; 'comments', :id =&amp;gt; links.id %&amp;gt;
&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;p&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;If you only want to render the partial for a single element (as in our example, since we already have a loop that is doing more than just rendering the partial), you pass the element using &lt;code&gt;:object&lt;/code&gt; instead of &lt;code&gt;:collection&lt;/code&gt;:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;All Articles&lt;span class="punct"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; @&lt;span class="attribute"&gt;articles.each&lt;/span&gt; &lt;span class="attribute"&gt;do&lt;/span&gt; |&lt;span class="attribute"&gt;art|&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; &lt;span class="attribute"&gt;art.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h2&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links', :object =&amp;gt; art %&amp;gt;
  &lt;span class="punct"&gt;&amp;lt;%&lt;/span&gt; &lt;span class="attribute"&gt;end&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;To make this work with our orignal &lt;code&gt;show.rhtml&lt;/code&gt; view, we pass the article in the same way:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.body&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links', :object =&amp;gt; @article %&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Now our partial is much more flexible and is decoupled from dependence on any particular instance variables. We can pass an article to it from whatever context is appropriate.&lt;/p&gt;


	&lt;p&gt;The only thing that&amp;#8217;s a bit ugly is using the local variable name &lt;code&gt;links&lt;/code&gt; in our partial. Perhaps you would prefer to use a more meaningful name, like &lt;code&gt;article&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;If you do this, you need to pass the variable using &lt;code&gt;:locals&lt;/code&gt; instead of &lt;code&gt;:object&lt;/code&gt;. &lt;code&gt;:locals&lt;/code&gt; takes a hash of variable names/values (so it can also be used to pass multiple variables). For example:&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_xml "&gt;  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.title&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;h1&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="punct"&gt;&amp;lt;&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;h&lt;/span&gt; @&lt;span class="attribute"&gt;article.body&lt;/span&gt; %&lt;span class="punct"&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class="tag"&gt;div&lt;/span&gt;&lt;span class="punct"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="punct"&gt;&amp;lt;%=&lt;/span&gt; &lt;span class="attribute"&gt;render&lt;/span&gt; :&lt;span class="attribute"&gt;partial&lt;/span&gt; &lt;span class="punct"&gt;=&amp;gt;&lt;/span&gt; 'links', :locals =&amp;gt; { :article =&amp;gt; @article } %&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;Within your partial, you would now refer to the article object through the local variable &lt;code&gt;article&lt;/code&gt;.&lt;/p&gt;


	&lt;p&gt;This technique can&amp;#8217;t be used with the &lt;code&gt;:collection&lt;/code&gt; form; it will always pass the collection element using the same name as the partial itself.&lt;/p&gt;</description>
      <pubDate>Tue, 24 Jul 2007 14:26:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:2bdcc1e4-3c5f-4268-b624-330016183b73</guid>
      <author>Bob Showalter</author>
      <link>http://www.robertshowalter.com/articles/2007/07/24/dont-use-instance-variables-in-partials</link>
      <category>Rails</category>
    </item>
    <item>
      <title>"Don't Use Instance Variables in Partials" by Guy</title>
      <description>&lt;p&gt;Very useful particularly the bit about using the &lt;code&gt;:locals&lt;/code&gt; option on &lt;code&gt;render :partial&lt;/code&gt;. Thanks&lt;/p&gt;</description>
      <pubDate>Fri, 31 Aug 2007 14:34:56 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:962ef1d6-7029-4306-871f-0ba066966933</guid>
      <link>http://www.robertshowalter.com/articles/2007/07/24/dont-use-instance-variables-in-partials#comment-918</link>
    </item>
    <item>
      <title>"Don't Use Instance Variables in Partials" by Abhilash Veettil</title>
      <description>&lt;p&gt;I want to show the list of customers in all my pages. So I made a call to the &amp;#8220;_customers&amp;#8221; partial from my application.rhtml template.&lt;/p&gt;


	&lt;p&gt;Code =&amp;gt;&lt;/p&gt;


	&lt;p&gt;&amp;lt;%= render(:partial =&amp;gt; &amp;#8220;customers/customers&amp;#8221; , :collection =&amp;gt; @all_customers) %&amp;gt;&lt;/p&gt;


	&lt;p&gt;and the code in _customers partial look like this =&amp;gt;&lt;/p&gt;


&lt;li&gt;&amp;lt;%= customers.name %&amp;gt;&lt;/li&gt;

	&lt;p&gt;and my &amp;#8220;customers&amp;#8221; controller look like this =&amp;gt;&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;def customers
  @all_customers = Customer.find(:all)
end&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;but am getting the following error&lt;/p&gt;


	&lt;p&gt;&lt;strong&gt;You have a nil object when you didn&amp;#8217;t expect it!
The error occurred while evaluating nil.name
&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;thanks//Abhi&lt;/p&gt;</description>
      <pubDate>Sun, 19 Aug 2007 05:14:21 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:2ebf89bb-7f18-4516-85de-782623cdeb63</guid>
      <link>http://www.robertshowalter.com/articles/2007/07/24/dont-use-instance-variables-in-partials#comment-506</link>
    </item>
  </channel>
</rss>
