Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我有一个MyModel带有属性的模型star。我应该使用 ransack 中的哪些谓词来获取以下查询:
MyModel
star
SELECT * FROM my_models WHERE star = 0 OR star IS NULL;
谢谢
我正在做一些测试并自动使用谓词来star_blank => 1做到这一点。
star_blank => 1