contests delete routes error

This commit is contained in:
yanxd 2014-06-09 10:51:07 +08:00
parent 174c5556a0
commit 4c7bcd50f5
2 changed files with 2 additions and 1 deletions

View File

@ -82,7 +82,7 @@
</tr>
<tr colspan='3'>
<td valign="middle">
<span style="display:block; margin-left:20px;"><%= link_to l(:label_contest_delete), {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' } %></span>
<span style="display:block; margin-left:20px;"><%= link_to l(:label_contest_delete), {:controller => 'contests', :action => 'destroy_contest', :id => @contest}, data: { confirm: '你确定要删除该竞赛吗?' }, method: :delete %></span>
</td>
</tr>
<% end %>

View File

@ -80,6 +80,7 @@ RedmineApp::Application.routes.draw do
match 'new' , via: :post
end
member do
delete 'destroy_contest'
match 'add_softapplication'
match 'update_contest' , via: [:put]
match 'show_contest' , via: :get