From 56298bc867e616adb8d7f1eaccd82dcca379bc8d Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Tue, 20 Jan 2009 11:34:43 -0800 Subject: [PATCH] Added a link to delete a Rate. #1919 --- app/views/rates/_list.html.erb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/views/rates/_list.html.erb b/app/views/rates/_list.html.erb index c048686..5fdaa3c 100644 --- a/app/views/rates/_list.html.erb +++ b/app/views/rates/_list.html.erb @@ -27,9 +27,7 @@ <% if rate.unlocked? %> <%= link_to image_tag('edit.png'), edit_rate_path(rate, :back_url => @back_url) %> - <%= link_to image_tag('delete.png'), - {:action => 'not_implemented', :id => @user, :rate_id => rate }, - {:method => :post, :confirm => l(:text_are_you_sure) } %> + <%= link_to image_tag('delete.png'), rate_path(rate, :back_url => @back_url), :method => :delete, :confirm => l(:text_are_you_sure) %> <% else %> <%= image_tag('locked.png') %> <% end %>