From 96f2a0ae83a09211a42a990b6e9be6fbc8ecc456 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 13 Aug 2015 16:57:10 -0300 Subject: [PATCH] Fix badge delete from admin view --- views/gamification_plugin_badges/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/gamification_plugin_badges/index.html.erb b/views/gamification_plugin_badges/index.html.erb index 6f1baea..1362689 100644 --- a/views/gamification_plugin_badges/index.html.erb +++ b/views/gamification_plugin_badges/index.html.erb @@ -19,7 +19,7 @@ <%= gamification_plugin_badge.threshold %> <%= link_to 'Show', :action => :show, :id => gamification_plugin_badge.id %> <%= link_to 'Edit', :action => :edit, :id => gamification_plugin_badge.id %> - <%= link_to 'Destroy', :action => :destroy, :id => gamification_plugin_badge.id, method: :delete, data: { confirm: 'Are you sure?' } %> + <%= button_without_text :delete, _('Remove'), {:action => :destroy, :id => gamification_plugin_badge.id}, :method => :post, :confirm => _('Are you sure?') %> <% end %> -- libgit2 0.21.2