I would like to be able to collect all the records in a table where user_id is not null. This is what I have, but it does not work (although I worked in a separate project):
named_scope :all_registered, :conditions => ["user_id != ?", nil]
source
share