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

Commit

Permalink
Merge pull request Growstuff#748 from wingyu/dev
Browse files Browse the repository at this point in the history
Issue Growstuff#713:  Added flash message when photos deleted
  • Loading branch information
maco committed Jun 13, 2015
2 parents ba90686 + 60df62f commit 2209d65
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 2209d65

Please sign in to comment.