From 1c60004c4afb49421507dd44575ecf74225d4507 Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Mon, 30 Apr 2012 11:26:01 -0400 Subject: [PATCH] Changed the "Delete" links into buttons with confirmation closes #31 --- app/views/maps/index.html.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/maps/index.html.erb b/app/views/maps/index.html.erb index 86f0e32..9bdc76d 100755 --- a/app/views/maps/index.html.erb +++ b/app/views/maps/index.html.erb @@ -3,7 +3,8 @@
Current Maps: <% Map.all.each do |map| %> -
- <%= map[:package] %> <%= map[:build] %> <%= link_to "Delete", "maps/delete/#{map[:map]}" %> +
+ <%= map[:package] %> <%= map[:build] %> <%= button_to "Delete", "delete/#{map[:map]}", :confirm => "Are you sure?" %> +
<% end %>