From 877400afbf7c5f8d172d2e29156c030e52e5b068 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Fri, 12 Sep 2025 18:42:17 +0200 Subject: [PATCH] Fix add card not working in the cards screen --- app/views/cards/index/_add_card_button.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/cards/index/_add_card_button.html.erb b/app/views/cards/index/_add_card_button.html.erb index 93d8d7442..052a26f8e 100644 --- a/app/views/cards/index/_add_card_button.html.erb +++ b/app/views/cards/index/_add_card_button.html.erb @@ -1,6 +1,6 @@ <% if collection = user_filtering.single_collection %>
- <%= button_to collection_cards_path(collection), method: :post, class: "btn" do %> + <%= button_to collection_cards_path(collection), method: :post, class: "btn", form: { data: { turbo_frame: "_top" } } do %> <%= icon_tag "add" %> Add a card <% end %>