cách sử dụng ransackable_scopes trong ROR
Petra Muelle
Đã trả lời Thứ Ba, 6:23 SA
Ever filter a Rails model using a Ransack scope? I recently used one to filter products based on subscription status. Using Product.ransack(with_active_subscription_true: true) worked perfectly! It returned only products with active subscriptions. Did anyone else find Ransack scopes helpful for complex filtering? Anyway, I'm off to play basket random .
0
Tổ chức
Chưa có tổ chức nào.