Filter by collection

This commit is contained in:
Jorge Manrubia
2025-06-09 13:12:58 +02:00
parent 28d1f104fd
commit d349a4ee5f
@@ -8,7 +8,7 @@ class Public::CollectionsController < ApplicationController
PAGE_SIZE = 50
def show
@filter = Current.user.filters.build
@filter = Current.user.filters.build(collection_ids: [ @collection.id ])
@considering = page_and_filter_for @filter.with(engagement_status: "considering"), per_page: PAGE_SIZE
@doing = page_and_filter_for @filter.with(engagement_status: "doing"), per_page: PAGE_SIZE