Commit 990b9217 authored by moregeek's avatar moregeek

show flash notice after deletion of a project

parent b110c6bc
...@@ -72,6 +72,6 @@ class Admin::ProjectsController < ApplicationController ...@@ -72,6 +72,6 @@ class Admin::ProjectsController < ApplicationController
@admin_project = Project.find_by_code(params[:id]) @admin_project = Project.find_by_code(params[:id])
@admin_project.destroy @admin_project.destroy
redirect_to admin_projects_url redirect_to admin_projects_url, notice: 'Project was successfully deleted.'
end 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