Mercurial > zeropaste
diff app/controllers/pastes_controller.rb @ 190:d4682cea8e58
Fun with alerts.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sat, 23 Feb 2013 14:31:34 +0900 |
parents | b4b7a29b70f6 |
children | 4e409ac7082d |
line wrap: on
line diff
--- a/app/controllers/pastes_controller.rb Sat Feb 23 14:01:22 2013 +0900 +++ b/app/controllers/pastes_controller.rb Sat Feb 23 14:31:34 2013 +0900 @@ -82,6 +82,7 @@ flash[:notice] = "Paste ##{params[:id]} deleted" redirect_to root_path else + flash[:error] = 'Incorrect deletion key' render :action => :show end end