<?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 comments</title>
    <link>http://www.robertshowalter.com</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>"Validating Mutually-Exclusive Attributes" by rssnewsdigest</title>
      <description>&lt;p&gt;Try rssnewsdigest.com, a new comprehensive news aggregator. With rssnewsdigest, you don &#8217;t really have to go anywhere else.
    &lt;a href="http://rssnewsdigest.com" rel="nofollow"&gt;http://rssnewsdigest.com&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 03 Apr 2008 09:05:47 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:51315707-4da9-43b7-9256-173bcaccacaf</guid>
      <link>http://www.robertshowalter.com/articles/2007/09/16/validating-mutually-exclusive-attributes#comment-943</link>
    </item>
    <item>
      <title>"Now When Did I Add That?" by chad</title>
      <description>&lt;p&gt;i love svn blame but it always blames me, so i stopped using it :)&lt;/p&gt;</description>
      <pubDate>Tue, 16 Oct 2007 16:31:54 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:131e42c9-c6c2-4f4b-8a72-1287b8bdd97d</guid>
      <link>http://www.robertshowalter.com/articles/2007/10/16/now-when-did-i-add-that#comment-923</link>
    </item>
    <item>
      <title>"Validating Mutually-Exclusive Attributes" by Bob</title>
      <description>&lt;p&gt;nioloash: I think the main advantage of using the validate class method with a block is that you can specify it multiple times, which allows you to logically separate your validations.&lt;/p&gt;


	&lt;p&gt;Other than that there is no real advantage.&lt;/p&gt;</description>
      <pubDate>Sun, 30 Sep 2007 16:47:45 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c32a2a5c-21e9-4860-bba4-55c217401c54</guid>
      <link>http://www.robertshowalter.com/articles/2007/09/16/validating-mutually-exclusive-attributes#comment-922</link>
    </item>
    <item>
      <title>"Validating Mutually-Exclusive Attributes" by nicolash</title>
      <description>&lt;p&gt;Could you explain how the giving a block is more useful then to validate without?
Where is it different to:&lt;/p&gt;


	&lt;p&gt;def validate 
 if name.blank? &amp;#38;&amp;#38; email.blank? 
  errors.add_to_base(&amp;#8220;You must specify a name or an email address&amp;#8221;) 
 end 
end&lt;/p&gt;</description>
      <pubDate>Thu, 27 Sep 2007 07:23:01 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:05554477-3b6a-49a4-9102-b92cd4ac9962</guid>
      <link>http://www.robertshowalter.com/articles/2007/09/16/validating-mutually-exclusive-attributes#comment-921</link>
    </item>
    <item>
      <title>"Validating Mutually-Exclusive Attributes" by Bob</title>
      <description>&lt;p&gt;chad: no, this validate method has been around since the early days of Rails.&lt;/p&gt;</description>
      <pubDate>Fri, 21 Sep 2007 08:45:09 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:be212849-c71e-4b1d-ad0d-ab3c982a3227</guid>
      <link>http://www.robertshowalter.com/articles/2007/09/16/validating-mutually-exclusive-attributes#comment-920</link>
    </item>
    <item>
      <title>"Validating Mutually-Exclusive Attributes" by chad</title>
      <description>&lt;p&gt;Hi Bob &amp;#8211; just found your blog. you should post more often. there are a number of places i could have used this validation block feature. was this new in rails 1.2.3?&lt;/p&gt;</description>
      <pubDate>Wed, 19 Sep 2007 23:43:03 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:c77925b3-b712-4c0a-bd01-cbadadec9dde</guid>
      <link>http://www.robertshowalter.com/articles/2007/09/16/validating-mutually-exclusive-attributes#comment-919</link>
    </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>
