From 4b9a04e3f73a58cad833a500e3c4c8d0c22c7996 Mon Sep 17 00:00:00 2001 From: "konstantin.grabar" Date: Wed, 20 Jun 2012 20:40:50 +0400 Subject: [PATCH] [refs #525] Set erase route to post --- app/views/platforms/repositories/show.html.haml | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/platforms/repositories/show.html.haml b/app/views/platforms/repositories/show.html.haml index 86f91d236..ffc4f9bc4 100644 --- a/app/views/platforms/repositories/show.html.haml +++ b/app/views/platforms/repositories/show.html.haml @@ -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' diff --git a/config/routes.rb b/config/routes.rb index e50c8100f..0beeb7144 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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