Flatten card resource

We only need the parent collection for creating cards. Carrying it in the
rest of actions is a hassle.
This commit is contained in:
Jorge Manrubia
2025-09-10 11:24:23 +02:00
parent 7f7ecf0346
commit 4e72566856
20 changed files with 1126 additions and 31 deletions
+1 -1
View File
@@ -32,7 +32,7 @@
<%= render "cards/display/common/background", card: card %>
</footer>
<%= link_to collection_card_path(card.collection, card), draggable: false, class: "card__link", title: card_title_tag(card), data: { action: "dialog#close", turbo_frame: "_top" } do %>
<%= link_to card_path(card), draggable: false, class: "card__link", title: card_title_tag(card), data: { action: "dialog#close", turbo_frame: "_top" } do %>
<span class="for-screen-reader"><%= card.title %></span>
<% end %>