From 380117e180697abf7eb3cfbb01981b941efb07c7 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Thu, 15 Oct 2009 09:11:45 -0700 Subject: [PATCH] show associated objects before destroying --- app/views/main/delete.html.erb | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/app/views/main/delete.html.erb b/app/views/main/delete.html.erb index 16f92df..8c6fa78 100644 --- a/app/views/main/delete.html.erb +++ b/app/views/main/delete.html.erb @@ -1,7 +1,24 @@

Are you sure you want to delete the <%= @abstract_model.pretty_name.downcase %> “<%= object_name(@object) %>”? All of the following related items will be deleted:

<%= form_for(@object, :action => url(:merb_admin_destroy, :model_name => @abstract_model.singular_name, :id => @object.id), :method => :delete) do %>