Skip to content
Snippets Groups Projects
Commit ba7e6ebf authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

redirect destroy collection action to :back

parent 19b7bdc4
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ class CollectionsController < ApplicationController
collection_repository.destroy @collection
respond_to do |format|
format.html { redirect_to collections_url, notice: 'Coleção excluida com sucesso.' }
format.html { redirect_to :back, notice: 'Coleção excluida com sucesso.' }
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment