show flash notice after deletion of a project

This commit is contained in:
moregeek 2012-07-16 14:01:32 +02:00
parent b110c6bc86
commit 990b9217d9

View file

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