cách sử dụng ransackable_scopes trong ROR
Peter James
Đã trả lời Thứ Hai, 12:41 CH
The scope looks fine, but Ransack may not pass the parameter as a plain value depending on how the query is structured. Make sure you’re calling the scope through the q params correctly, for example q[with_active_subscription]=true. Also check that the permitted params actually contain the value before calling Product.ransack(search_params). Using params[:q].inspect in the controller can help confirm what Ransack is receiving. professional air duct cleaning
0
Tổ chức
Chưa có tổ chức nào.