From 401197a895680f824f9aec9d82b25ae686e6b206 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Thu, 23 Sep 2010 15:20:19 +0000 Subject: Refactor: move #destroy_comment method to CommentsController#destroy git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4172 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/news/show.rhtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/news/show.rhtml b/app/views/news/show.rhtml index 9b8f2510e..7861a3d01 100644 --- a/app/views/news/show.rhtml +++ b/app/views/news/show.rhtml @@ -39,8 +39,8 @@ <% @comments.each do |comment| %> <% next if comment.new_record? %>
- <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment}, - :confirm => l(:text_are_you_sure), :method => :post, :title => l(:button_delete) %> + <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment}, + :confirm => l(:text_are_you_sure), :method => :delete, :title => l(:button_delete) %>

<%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %>

<%= textilizable(comment.comments) %> -- cgit v1.2.3