Permalink
Browse files

fixed deleting of issue attachments

  • Loading branch information...
1 parent 7cd1d66 commit dafcbde15ac967694d3d08458f8c5ee4522bdcc5 Michael committed Dec 11, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 app/views/attachments/_links.rhtml
@@ -9,11 +9,11 @@
<% end -%>
<% if options[:deletable] %>
- <%= link_to image_tag('delete.png'), {:controller => 'attachments', :action => 'destroy', :id => attachment},
- :confirm => l(:text_are_you_sure),
- :method => :post,
- :class => "delete",
- :title => l(:button_delete) %>
+ <%= link_to image_tag('delete.png'), attachment_path(attachment),
+ :confirm => l(:text_are_you_sure),
+ :method => :delete,
+ :class => 'delete',
+ :title => l(:button_delete) %>
<% end %>
<% if options[:author] %>

0 comments on commit dafcbde

Please sign in to comment.