Files
fizzy/app/controllers/cards/publishes_controller.rb
T
2025-11-05 13:31:54 +01:00

19 lines
347 B
Ruby

class Cards::PublishesController < ApplicationController
include CardScoped
def create
@card.publish
if add_another_param?
redirect_to @board.cards.create!, notice: "Card added"
else
redirect_to @card.board
end
end
private
def add_another_param?
params[:creation_type] == "add_another"
end
end