Skip to content
Snippets Groups Projects
Commit 75b0ef82 authored by Kevin Boyd's avatar Kevin Boyd
Browse files

Fine-tune the Remove Project redirect. Now it redirects to admin_projects_path...

Fine-tune the Remove Project redirect. Now it redirects to admin_projects_path and shows a flash message confirming the action has been taken.
parent c9054319
No related branches found
No related tags found
1 merge request!178Redirect users to Projects Admin Page after removing a project
Loading
@@ -103,7 +103,10 @@ class ProjectsController < ApplicationController
Loading
@@ -103,7 +103,10 @@ class ProjectsController < ApplicationController
::Projects::DestroyService.new(@project, current_user, {}).execute ::Projects::DestroyService.new(@project, current_user, {}).execute
   
respond_to do |format| respond_to do |format|
format.html { redirect_to root_path } format.html do
flash[:alert] = "Project deleted."
redirect_to admin_projects_path
end
end end
end end
   
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment