[refs #525] Set erase route to post

This commit is contained in:
konstantin.grabar 2012-06-20 20:40:50 +04:00
parent 270dbf2e9b
commit 4b9a04e3f7
2 changed files with 2 additions and 2 deletions

View File

@ -12,6 +12,6 @@
- if can? :add_project, @repository
= link_to t("layout.projects.add"), add_project_platform_repository_path(@platform, @repository), :class => 'button'
- if can? :erase, @repository
= link_to t("layout.repositories.erase"), erase_platform_repository_path(@platform, @repository), :class => 'button', :confirm => t('layout.repositories.erase_confirm')
= link_to t("layout.repositories.erase"), erase_platform_repository_path(@platform, @repository), :class => 'button', :confirm => t('layout.repositories.erase_confirm'), :method => :post
= render 'proj_list'

View File

@ -58,7 +58,7 @@ Rosa::Application.routes.draw do
resources :repositories do
member do
get :add_project
get :erase
post :erase
delete :remove_project
get :projects_list
end