Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Don't display the delete link unless no service events exist (See related posts)

// This is the link I'll use when I get to adding the delete methods in the controllers.

<% if @client.service_events.empty? -%> | <%= link_to "delete", :controller => "admin", :action => "destroy_client", :id => @client %><% end -%>

You need to create an account or log in to post comments to this site.


Click here to browse all 5059 code snippets

Related Posts