As a named_scope, compiled_this_week will return a collection, even if it finds only one record matching its criteria. On a collection, #empty? will work. When you call #first or #find(:first) on the collection returned by compiled_this_week, you get the first record. #empty? is undefined on that record. Regards, Craig
-- Craig Demyanovich Mutually Human Software http://mutuallyhuman.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

