Skip to content

Commit

Permalink
after gift card destroy, redirect to current page. Issue #202
Browse files Browse the repository at this point in the history
  • Loading branch information
shua123 committed Sep 28, 2016
1 parent 33d7cfd commit e01983d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/gift_cards_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update
def destroy
@gift_card.destroy
respond_to do |format|
format.html { redirect_to gift_cards_url }
format.html { redirect_to :back }
format.json { head :no_content }
end
end
Expand Down

0 comments on commit e01983d

Please sign in to comment.