Suppose I need to check if a certain property is not set.
I imagine something like this but It doesn’t work.
@users = User.find_all_by_role(["role = ?",nil])
I tried some other variants with no luck.
I guess this should be pretty straightforward.
Thank you!
Using ActiveRecord’s pre-3.0 syntax:
After 3.0 you can write: