<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: ruby code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 04:37:55 GMT</pubDate>
    <description>DZone Snippets: ruby code</description>
    <item>
      <title>Don't display the delete link unless no service events exist</title>
      <link>http://snippets.dzone.com/posts/show/2256</link>
      <description>// This is the link I'll use when I get to adding the delete methods in the controllers.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;% if @client.service_events.empty? -%&gt; | &lt;%= link_to "delete", :controller =&gt; "admin", :action =&gt; "destroy_client", :id =&gt; @client %&gt;&lt;% end -%&gt;&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Fri, 07 Jul 2006 23:12:43 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2256</guid>
      <author>lcummings (Larry Cummings)</author>
    </item>
  </channel>
</rss>
