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

About this user

Larry Cummings www.the-fbc.org

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

Don't display the delete link unless no service events exist

// 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 -%>
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS