Commit 75b0ef82 authored by Kevin Boyd's avatar Kevin Boyd

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
......@@ -103,7 +103,10 @@ class ProjectsController < ApplicationController
::Projects::DestroyService.new(@project, current_user, {}).execute
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment