#1403修复测试版:项目--新闻:添加评论却返回404页面的BUG

问题:url错误
This commit is contained in:
sw 2014-10-23 16:11:28 +08:00
parent 3e03c928dc
commit fb9d3921e6
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@
<span class="font_lighter"> <%= format_time(comment.created_on) %></span>
</td>
<td width="200" align="right" class="a">
<%= link_to_if_authorized image_tag('delete.png'), delete_news_comments_path(id: @news, comment: comment),
<%= link_to_if_authorized image_tag('delete.png'), {:controller => 'comments', :action => 'destroy', :id => @news, :comment_id => comment},
:data => {:confirm => l(:text_are_you_sure)},
:method => :delete,
:title => l(:button_delete) %>