[refs #525] Set erase route to post
This commit is contained in:
parent
270dbf2e9b
commit
4b9a04e3f7
|
@ -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'
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue