<?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: Tag tips</title>
    <link>http://www.yup.com/articles/tag/tips?tag=tips</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Advanced Web Services</description>
    <item>
      <title>Article: 19 Rails Tricks Most Coders Don't Know</title>
      <description>&lt;p&gt;&lt;img style="float: right; margin: 4px; padding: 4px; border: 1px dotted #ccc" src="http://static.flickr.com/36/88444324_6c3e588c38_m.jpg" /&gt;Englander Peter Cooper, author of &lt;a href="http://rubyforge.org/projects/classroom/"&gt;Classroom&lt;/a&gt;, a centralized, dynamic class server for ruby based on &lt;a href="http://www.chadfowler.com/ruby/drb.html"&gt;DRb (Distributed Ruby)&lt;/a&gt;, has posted an informative article listing 19 Ruby on Rails tricks that every rubyist should know.&lt;/p&gt;

&lt;p&gt;These tips include examples that help you:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Benchmark logic in your controller actions&lt;/li&gt;
&lt;li&gt;Easier collections with to_proc&lt;/li&gt;
&lt;li&gt;Convert arrays to sentences in views&lt;/li&gt;
&lt;li&gt;Send files back to the user&lt;/li&gt;
&lt;li&gt;Iterate though page elements with &lt;a href="http://www.codyfauser.com/articles/2005/11/20/rails-rjs-templates"&gt;RJS&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Check for existence&lt;/li&gt;
&lt;li&gt;Number helpers for common number tasks&lt;/li&gt;
&lt;li&gt;Testing different route configurations easily&lt;/li&gt;
&lt;li&gt;Get lots of info about requests&lt;/li&gt;
&lt;li&gt;Improve session performance even more than with ActiveRecord&lt;/li&gt;
&lt;li&gt;Cache unchanging data at application startup&lt;/li&gt;
&lt;li&gt;Check your views are rendering valid HTML/XHTML &lt;/li&gt;
&lt;li&gt;Cleaner HTML output testing &lt;/li&gt;
&lt;li&gt;Run long-running tasks separately in the background&lt;/li&gt;
&lt;li&gt;Make IDs in URLs more user friendly&lt;/li&gt;
&lt;li&gt;Separate out slices of functionality into Engines&lt;/li&gt;
&lt;li&gt;Do aggregate calculations&lt;/li&gt;
&lt;li&gt;XML or YAML output of your data &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for all the tips, Peter! &lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.rubyinside.com/19-rails-tricks-most-rails-coders-dont-know-131.html"&gt;Article Link&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://www.rubyinside.com/"&gt;Ruby Inside Blog&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 12 Jul 2006 07:43:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:0f0e83ba-1934-4e1b-9104-1149137f9199</guid>
      <author>Daniel Butler</author>
      <link>http://www.yup.com/articles/2006/07/12/article-19-rails-tricks-most-coders-dont-know</link>
      <category>Ruby on Rails</category>
      <category>tips</category>
    </item>
  </channel>
</rss>
