Redirect to collection after publishing a card

This commit is contained in:
Jason Zimdars
2025-10-22 17:07:24 -07:00
parent 2d16e98a7e
commit d3a20060e2
@@ -7,7 +7,7 @@ class Cards::PublishesController < ApplicationController
if add_another_param?
redirect_to @collection.cards.create!, notice: "Card added"
else
redirect_to @card
redirect_to @card.collection
end
end