<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/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>Yup Dot Com: Rails No-Nos Now</title>
    <link>http://www.yup.com/articles/2006/08/30/rails-no-nos-now</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Advanced Web Services</description>
    <item>
      <title>Rails No-Nos Now</title>
      <description>&lt;p&gt;&lt;img style="float: right; border: 1px dotted #ccc; margin: 4px; padding: 4px;" src="http://static.flickr.com/75/229477859_745945240b_m.jpg" /&gt;&lt;/p&gt;

&lt;p&gt;Kevin Clark of San Diego has posted an article describing several deprecated features of Rails&amp;#8211;thing you should fix now or they&amp;#8217;ll break later. Quickly, they are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Accessing Instance Variables You Didn’t Create&lt;/li&gt;
&lt;li&gt;Stop using &lt;code&gt;find_all&lt;/code&gt; and &lt;code&gt;find_first&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t write the AJAX-enabled feature before you write the simple fallback feature.&lt;/li&gt;
&lt;li&gt;Stop asking for things not directly related to your problem. &lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t use scaffolding.&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t use components.&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t use engines unless you&amp;#8217;re going to do it  right.&lt;/li&gt;
&lt;li&gt;Use layouts more&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t use Rails Paginator class&lt;/li&gt;
&lt;li&gt;Don&amp;#8217;t put controllers into namespaces.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I don&amp;#8217;t completely agree with all of Kevin&amp;#8217;s findings, but you should at least view the article to be aware of some of the problems that you might encounter using these less than best practices features.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://glu.ttono.us/articles/2006/08/30/guide-things-you-shouldnt-be-doing-in-rails"&gt;Things You Shouldn&amp;#8217;t Be Doing in Rails&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 30 Aug 2006 17:45:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:3ae1f910-81b0-41d3-a71c-3e1eed63b6bd</guid>
      <author>Daniel Butler</author>
      <link>http://www.yup.com/articles/2006/08/30/rails-no-nos-now</link>
      <category>Ruby on Rails</category>
    </item>
  </channel>
</rss>
