Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
added flash message when deleting messages
Browse files Browse the repository at this point in the history
  • Loading branch information
wingyu committed Jun 6, 2015
1 parent a7feac3 commit 60df62f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/photos_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ def update
def destroy
@photo = Photo.find(params[:id])
@photo.destroy

flash[:alert] = "Photo successfully deleted."

respond_to do |format|
format.html { redirect_to photos_url }
format.json { head :no_content }
Expand Down

0 comments on commit 60df62f

Please sign in to comment.