Added a link to delete a Rate. #1919

This commit is contained in:
Eric Davis
2009-01-20 11:34:43 -08:00
parent 158969e359
commit 56298bc867
+1 -3
View File
@@ -27,9 +27,7 @@
<td align="center">
<% 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 %>